Package org.apache.iceberg.util
Class CharSequenceWrapper
- java.lang.Object
-
- org.apache.iceberg.util.CharSequenceWrapper
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.CharSequence
public class CharSequenceWrapper extends java.lang.Object implements java.lang.CharSequence, java.io.Serializable
Wrapper class to adapt CharSequence for use in maps and sets.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description char
charAt(int index)
boolean
equals(java.lang.Object other)
java.lang.CharSequence
get()
int
hashCode()
int
length()
CharSequenceWrapper
set(java.lang.CharSequence newWrapped)
java.lang.CharSequence
subSequence(int start, int end)
java.lang.String
toString()
static CharSequenceWrapper
wrap(java.lang.CharSequence seq)
-
-
-
Method Detail
-
wrap
public static CharSequenceWrapper wrap(java.lang.CharSequence seq)
-
set
public CharSequenceWrapper set(java.lang.CharSequence newWrapped)
-
get
public java.lang.CharSequence get()
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
length
public int length()
- Specified by:
length
in interfacejava.lang.CharSequence
-
charAt
public char charAt(int index)
- Specified by:
charAt
in interfacejava.lang.CharSequence
-
subSequence
public java.lang.CharSequence subSequence(int start, int end)
- Specified by:
subSequence
in interfacejava.lang.CharSequence
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfacejava.lang.CharSequence
- Overrides:
toString
in classjava.lang.Object
-
-