Package com.ibm.icu.util
Class CaseInsensitiveString
java.lang.Object
com.ibm.icu.util.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.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an CaseInsentiveString object from the given string -
Method Summary
-
Field Details
-
string
-
hash
private int hash -
folded
-
-
Constructor Details
-
CaseInsensitiveString
Constructs an CaseInsentiveString object from the given string- Parameters:
s
- The string to construct this object from
-
-
Method Details
-
foldCase
-
getFolded
private void getFolded() -
getString
returns the underlying string- Returns:
- String
-
equals
Compare the object with this -
hashCode
public int hashCode()Returns the hashCode of this object -
toString
Overrides superclass method
-