|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsl.CaseInsensitiveString
A name string, with case insensitive comparison and equality operations.
This class holds a String inside, preserving the case; however,
all the equality and comparision operations are performed in a case
insensitive fashion.
| Field Summary | |
(package private) java.lang.String |
s
|
| Constructor Summary | |
CaseInsensitiveString(java.lang.String name)
Create a new Name object. |
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
Equality operation. |
int |
hashCode()
Hash code. |
java.lang.String |
toString()
Converts the Name object into a string. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
java.lang.String s
| Constructor Detail |
public CaseInsensitiveString(java.lang.String name)
Name object.
name - The string that will be kept inside this object.| Method Detail |
public java.lang.String toString()
Name object into a string.
public boolean equals(java.lang.Object o)
Name object with
another or with a Java String. The comparison is case
insensitive.
o - The Java object to compare this Name to.
true if the strings contained within the two objects
are equal, apart from case.public int hashCode()
Name objects differing only in case have the same hash code.
Name object.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||