|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 from| Method Detail |
|---|
public String getString()
public boolean equals(Object o)
equals in class Objecto - Object to compare this object withpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||