| com.sun.j2me.global.CommonStringComparator
All known Subclasses: com.sun.j2me.global.StringComparatorImpl,
Method Summary | |
public int | compare(String s1, String s2) Compares the two strings using the rules specific to the associated
locale of this instance. | public boolean | equals(String s1, String s2) Tests if the two strings are equal according to the rules specific to
the associated locale of this instance. |
compare | public int compare(String s1, String s2)(Code) | | Compares the two strings using the rules specific to the associated
locale of this instance. Use the equals method to more
conveniently test for equality.
Parameters: s1 - first string to compare Parameters: s2 - second string to compare negative if s1 belongs before s2, zero if the strings are equal, positive if s1 belongs after s2 throws: NullPointerException - if either s1 or s2 is null See Also: CommonStringComparator.equals(String,String) |
equals | public boolean equals(String s1, String s2)(Code) | | Tests if the two strings are equal according to the rules specific to
the associated locale of this instance.
Parameters: s1 - first string to compare Parameters: s2 - second string to compare true if the strings are equal, false if not throws: NullPointerException - if either s1 or s2 is null |
|
|