Package one.microstream.chars
Class CharView
- java.lang.Object
-
- one.microstream.chars.CharView
-
- All Implemented Interfaces:
CharSequence
public final class CharView extends Object implements CharSequence
-
-
Constructor Summary
Constructors Constructor Description CharView(char[] data, int offset, int length)
-
Method Summary
Modifier and Type Method Description char
charAt(int index)
int
length()
CharSequence
subSequence(int start, int end)
String
toString()
void
validateIndex(int index)
void
validateRange(int offset, int length)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.CharSequence
chars, codePoints
-
-
-
-
Method Detail
-
validateIndex
public final void validateIndex(int index)
-
validateRange
public final void validateRange(int offset, int length)
-
length
public final int length()
- Specified by:
length
in interfaceCharSequence
-
charAt
public final char charAt(int index)
- Specified by:
charAt
in interfaceCharSequence
-
subSequence
public final CharSequence subSequence(int start, int end)
- Specified by:
subSequence
in interfaceCharSequence
-
toString
public final String toString()
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-
-