com.ibm.icu.util

Class CaseInsensitiveString

public class CaseInsensitiveString extends Object

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.

UNKNOWN: ICU 2.0

Constructor Summary
CaseInsensitiveString(String s)
Constructs an CaseInsentiveString object from the given string
Method Summary
booleanequals(Object o)
Compare the object with this
StringgetString()
returns the underlying string
inthashCode()
Returns the hashCode of this object
StringtoString()
Overrides superclass method

Constructor Detail

CaseInsensitiveString

public CaseInsensitiveString(String s)
Constructs an CaseInsentiveString object from the given string

Parameters: s The string to construct this object from

UNKNOWN: ICU 2.0

Method Detail

equals

public boolean equals(Object o)
Compare the object with this

Parameters: o Object to compare this object with

UNKNOWN: ICU 2.0

getString

public String getString()
returns the underlying string

Returns: String

UNKNOWN: ICU 2.0

hashCode

public int hashCode()
Returns the hashCode of this object

Returns: int hashcode

UNKNOWN: ICU 2.0

toString

public String toString()
Overrides superclass method

UNKNOWN: ICU 3.6

Copyright (c) 2007 IBM Corporation and others.