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 BigDecimal
bigDecimalValue()
BigInteger
bigIntegerValue()
boolean
booleanValue()
byte
byteValue()
char
charAt(int index)
char
charValue()
void
chop()
Date
dateValue()
double
doubleValue()
boolean
equals(Object o)
float
floatValue()
int
hashCode()
int
intValue()
boolean
isContainer()
int
length()
long
longValue()
short
shortValue()
String
stringValue()
String
stringValueEncoded()
CharSequence
subSequence(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)
String
toString()
Object
toValue()
-
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:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-
isContainer
public boolean isContainer()
- Specified by:
isContainer
in interfaceValue
-
length
public final int length()
- Specified by:
length
in interfaceCharSequence
-
charAt
public final char charAt(int index)
- Specified by:
charAt
in interfaceCharSequence
-
subSequence
public final CharSequence subSequence(int start, int end)
- Specified by:
subSequence
in interfaceCharSequence
-
bigDecimalValue
public BigDecimal bigDecimalValue()
- Specified by:
bigDecimalValue
in interfaceValue
-
bigIntegerValue
public BigInteger bigIntegerValue()
- Specified by:
bigIntegerValue
in interfaceValue
-
stringValue
public String stringValue()
- Specified by:
stringValue
in interfaceValue
-
stringValueEncoded
public String stringValueEncoded()
- Specified by:
stringValueEncoded
in interfaceValue
-
shortValue
public short shortValue()
- Specified by:
shortValue
in interfaceValue
-
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in interfaceValue
-
booleanValue
public boolean booleanValue()
- Specified by:
booleanValue
in interfaceValue
-
floatValue
public float floatValue()
- Specified by:
floatValue
in interfaceValue
-
-