Class CharSequencePointer
java.lang.Object
org.apache.logging.log4j.layout.template.json.util.CharSequencePointer
- All Implemented Interfaces:
CharSequence
A
CharSequence wrapper that allows mutation of the pointed delegate sequence.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncharcharAt(int startIndex) chars()intlength()private voidvoidreset(CharSequence delegate, int startIndex, int endIndex) subSequence(int startIndex, int endIndex) toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface CharSequence
getChars, isEmpty
-
Field Details
-
delegate
-
startIndex
private int startIndex -
length
private int length
-
-
Constructor Details
-
CharSequencePointer
public CharSequencePointer()
-
-
Method Details
-
reset
-
length
public int length()- Specified by:
lengthin interfaceCharSequence
-
charAt
public char charAt(int startIndex) - Specified by:
charAtin interfaceCharSequence
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-
chars
- Specified by:
charsin interfaceCharSequence
-
codePoints
- Specified by:
codePointsin interfaceCharSequence
-
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-
requireReset
private void requireReset()
-