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)
-
Constructor Details
-
CharView
public CharView(char[] data, int offset, int length)
-
-
Method Details
-
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
- Specified by:
subSequence
in interfaceCharSequence
-
toString
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-