java.lang.Object
com.intellij.util.text.CharArrayCharSequence
- All Implemented Interfaces:
CharSequenceWithStringHash,CharSequenceBackedByArray,CharSequence
public class CharArrayCharSequence
extends Object
implements CharSequenceBackedByArray, CharSequenceWithStringHash
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCharArrayCharSequence(char @NotNull ... chars) CharArrayCharSequence(char @NotNull [] chars, int start, int end) -
Method Summary
Modifier and TypeMethodDescriptionfinal charcharAt(int index) booleanchar @NotNull []getChars()voidgetChars(char @NotNull [] dst, int dstOffset) inthashCode()final intlength()intreadCharsTo(int start, char[] cbuf, int off, int len) @NotNull CharSequencesubSequence(int start, int end) @NotNull StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Field Details
-
myChars
protected final char[] myChars -
myStart
protected final int myStart -
myEnd
protected final int myEnd
-
-
Constructor Details
-
CharArrayCharSequence
public CharArrayCharSequence(char @NotNull ... chars) -
CharArrayCharSequence
public CharArrayCharSequence(char @NotNull [] chars, int start, int end)
-
-
Method Details
-
length
public final int length()- Specified by:
lengthin interfaceCharSequence
-
charAt
public final char charAt(int index) - Specified by:
charAtin interfaceCharSequence
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-
getChars
public char @NotNull [] getChars()- Specified by:
getCharsin interfaceCharSequenceBackedByArray
-
getChars
public void getChars(char @NotNull [] dst, int dstOffset) - Specified by:
getCharsin interfaceCharSequenceBackedByArray
-
equals
-
readCharsTo
public int readCharsTo(int start, char[] cbuf, int off, int len) -
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCharSequenceWithStringHash- Overrides:
hashCodein classObject
-