Package com.google.gson.internal
Class Streams.AppendableWriter.CurrentWrite
java.lang.Object
com.google.gson.internal.Streams.AppendableWriter.CurrentWrite
- All Implemented Interfaces:
CharSequence
- Enclosing class:
Streams.AppendableWriter
A mutable char sequence pointing at a single char[].
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncharcharAt(int i) intlength()(package private) voidsetChars(char[] chars) subSequence(int start, int end) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePoints
-
Field Details
-
chars
private char[] chars -
cachedString
-
-
Constructor Details
-
CurrentWrite
private CurrentWrite()
-
-
Method Details
-
setChars
void setChars(char[] chars) -
length
public int length()- Specified by:
lengthin interfaceCharSequence
-
charAt
public char charAt(int i) - Specified by:
charAtin interfaceCharSequence
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-