FileDocCategorySizeDatePackage
GenericObject.javaAPI DocphoneME MR2 API (J2ME)2170Wed May 02 18:00:42 BST 2007gov.nist.core

GenericObject

public abstract class GenericObject extends Object
Basic instance used as base for data elements.

Fields Summary
Constructors Summary
Methods Summary
public abstract java.lang.Objectclone()
Makes a copy of the current instance.

return
copy of current object

public static intcompareToIgnoreCase(java.lang.String s1, java.lang.String s2)
Generic case sensitive string comparison utility.

param
s1 first string for comparison
param
s2 second string for comparison
return
true if s1 and s2 match

        return s1.toLowerCase().compareTo(s2.toLowerCase());
    
public abstract java.lang.Stringencode()
Encodes current object as a text string.

return
encoded text string.

public static booleanequalsIgnoreCase(java.lang.String s1, java.lang.String s2)
Generic case insensitive string comparison utility.

param
s1 first string for comparison
param
s2 second string for comparison
return
true if s1 and s2 match

        return s1.toLowerCase().equals(s2.toLowerCase());