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 TypeMethodDescriptionchar
charAt
(int i) int
length()
(package private) void
setChars
(char[] chars) subSequence
(int start, int end) toString()
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
-
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:
length
in interfaceCharSequence
-
charAt
public char charAt(int i) - Specified by:
charAt
in interfaceCharSequence
-
subSequence
- Specified by:
subSequence
in interfaceCharSequence
-
toString
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-