com.ibm.icu.util
Class 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.
boolean | equals(Object o) - Compare the object with this
|
String | getString() - returns the underlying string
|
int | hashCode() - Returns the hashCode of this object
|
CaseInsensitiveString
public CaseInsensitiveString(String s)
Constructs an CaseInsentiveString object from the given string
s
- The string to construct this object from
equals
public boolean equals(Object o)
Compare the object with this
o
- Object to compare this object with
getString
public String getString()
returns the underlying string
hashCode
public int hashCode()
Returns the hashCode of this object
Copyright (c) 2006 IBM Corporation and others.