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
All Methods Static Methods Instance Methods Concrete Methods 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, wait
-
Methods inherited from interface java.lang.CharSequence
chars, codePoints
-
-
-
-
Constructor Detail
-
CharSequenceValue
public CharSequenceValue(boolean chop, Type type, int startIndex, int endIndex, char[] buffer, boolean encoded, boolean checkDate)
-
-
Method Detail
-
toString
public String toString()
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-
isContainer
public boolean isContainer()
- Specified by:
isContainerin interfaceValue
-
length
public final int length()
- Specified by:
lengthin interfaceCharSequence
-
charAt
public final char charAt(int index)
- Specified by:
charAtin interfaceCharSequence
-
subSequence
public final CharSequence subSequence(int start, int end)
- Specified by:
subSequencein interfaceCharSequence
-
bigDecimalValue
public BigDecimal bigDecimalValue()
- Specified by:
bigDecimalValuein interfaceValue
-
bigIntegerValue
public BigInteger bigIntegerValue()
- Specified by:
bigIntegerValuein interfaceValue
-
stringValue
public String stringValue()
- Specified by:
stringValuein interfaceValue
-
stringValueEncoded
public String stringValueEncoded()
- Specified by:
stringValueEncodedin interfaceValue
-
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
-
-