|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.icu.util.CaseInsensitiveString
public class CaseInsensitiveString
A string used as a key in java.util.Hashtable and other collections. It retains case information, but its equals() and hashCode() methods ignore case.
Constructor Summary | |
---|---|
CaseInsensitiveString(String s)
Constructs an CaseInsentiveString object from the given string |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare the object with this |
String |
getString()
returns the underlying string |
int |
hashCode()
Returns the hashCode of this object |
String |
toString()
Overrides superclass method |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CaseInsensitiveString(String s)
s
- The string to construct this object fromMethod Detail |
---|
public String getString()
public boolean equals(Object o)
equals
in class Object
o
- Object to compare this object withpublic int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |