Package com.intellij.util.text
Class CharArrayCharSequence
- java.lang.Object
-
- com.intellij.util.text.CharArrayCharSequence
-
- All Implemented Interfaces:
CharSequenceBackedByArray
,CharSequence
public class CharArrayCharSequence extends Object implements CharSequenceBackedByArray
-
-
Constructor Summary
Constructors Constructor Description CharArrayCharSequence(char... chars)
CharArrayCharSequence(char[] chars, int start, int end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char
charAt(int index)
boolean
equals(Object anObject)
char[]
getChars()
void
getChars(char[] dst, int dstOffset)
int
hashCode()
int
length()
int
readCharsTo(int start, char[] cbuf, int off, int len)
CharSequence
subSequence(int start, int end)
String
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
-
-
-
-
Method Detail
-
length
public final int length()
- Specified by:
length
in interfaceCharSequence
-
charAt
public final char charAt(int index)
- Specified by:
charAt
in interfaceCharSequence
-
subSequence
public CharSequence subSequence(int start, int end)
- Specified by:
subSequence
in interfaceCharSequence
-
toString
public String toString()
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-
getChars
public char[] getChars()
- Specified by:
getChars
in interfaceCharSequenceBackedByArray
-
getChars
public void getChars(char[] dst, int dstOffset)
- Specified by:
getChars
in interfaceCharSequenceBackedByArray
-
readCharsTo
public int readCharsTo(int start, char[] cbuf, int off, int len)
-
-