Package ch.njol.util
Class CaseInsensitiveString
java.lang.Object
ch.njol.util.CaseInsensitiveString
- All Implemented Interfaces:
Serializable
,CharSequence
,Comparable<CharSequence>
public class CaseInsensitiveString
extends Object
implements Serializable, Comparable<CharSequence>, CharSequence
A string which is compared ignoring it's case.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionchar
charAt
(int i) int
boolean
int
hashCode()
int
length()
subSequence
(int start, int end) toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Constructor Details
-
CaseInsensitiveString
-
CaseInsensitiveString
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
toString
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-
charAt
public char charAt(int i) - Specified by:
charAt
in interfaceCharSequence
-
length
public int length()- Specified by:
length
in interfaceCharSequence
-
subSequence
- Specified by:
subSequence
in interfaceCharSequence
-
compareTo
- Specified by:
compareTo
in interfaceComparable<CharSequence>
-