Package org.apache.groovy.json.internal
Class CharSequenceValue
java.lang.Object
org.apache.groovy.json.internal.CharSequenceValue
- All Implemented Interfaces:
CharSequence,Value
public class CharSequenceValue extends Object implements Value, CharSequence
-
Constructor Summary
Constructors Constructor Description CharSequenceValue(boolean chop, Type type, int startIndex, int endIndex, char[] buffer, boolean encoded, boolean checkDate) -
Method Summary
Modifier and Type Method Description BigDecimalbigDecimalValue()BigIntegerbigIntegerValue()booleanbooleanValue()bytebyteValue()charcharAt(int index)charcharValue()voidchop()DatedateValue()doubledoubleValue()booleanequals(Object o)floatfloatValue()inthashCode()intintValue()booleanisContainer()intlength()longlongValue()shortshortValue()StringstringValue()StringstringValueEncoded()CharSequencesubSequence(int start, int end)<T extends Enum>
TtoEnum(Class<T> cls)static <T extends Enum>
TtoEnum(Class<T> cls, int value)static <T extends Enum>
TtoEnum(Class<T> cls, String value)StringtoString()ObjecttoValue()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePoints
-
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()
-