Package org.apache.groovy.json.internal
Class CharSequenceValue
java.lang.Object
org.apache.groovy.json.internal.CharSequenceValue
- All Implemented Interfaces:
CharSequence,Value
-
Constructor Summary
ConstructorsConstructorDescriptionCharSequenceValue(boolean chop, Type type, int startIndex, int endIndex, char[] buffer, boolean encoded, boolean checkDate) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbytefinal charcharAt(int index) charfinal voidchop()doublebooleanfloatinthashCode()intintValue()booleanfinal intlength()longshortfinal CharSequencesubSequence(int start, int end) <T extends Enum>
Tstatic <T extends Enum>
Tstatic <T extends Enum>
TtoString()final ObjecttoValue()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Constructor Details
-
CharSequenceValue
public CharSequenceValue(boolean chop, Type type, int startIndex, int endIndex, char[] buffer, boolean encoded, boolean checkDate)
-
-
Method Details
-
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-
toValue
-
toEnum
-
toEnum
-
toEnum
-
isContainer
public boolean isContainer()- Specified by:
isContainerin interfaceValue
-
equals
-
hashCode
public int hashCode() -
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
-
bigDecimalValue
- Specified by:
bigDecimalValuein interfaceValue
-
bigIntegerValue
- Specified by:
bigIntegerValuein interfaceValue
-
stringValue
- Specified by:
stringValuein interfaceValue
-
stringValueEncoded
- Specified by:
stringValueEncodedin interfaceValue
-
dateValue
-
intValue
public int intValue() -
longValue
public long longValue() -
byteValue
public byte byteValue() -
shortValue
public short shortValue()- Specified by:
shortValuein interfaceValue
-
doubleValue
public double doubleValue()- Specified by:
doubleValuein interfaceValue
-
booleanValue
public boolean booleanValue()- Specified by:
booleanValuein interfaceValue
-
floatValue
public float floatValue()- Specified by:
floatValuein interfaceValue
-
chop
public final void chop() -
charValue
public char charValue()
-