Package org.apache.groovy.json.internal
Class CharSequenceValue
java.lang.Object
org.apache.groovy.json.internal.CharSequenceValue
- All Implemented Interfaces:
CharSequence
,Value
-
Constructor Summary
ConstructorDescriptionCharSequenceValue
(boolean chop, Type type, int startIndex, int endIndex, char[] buffer, boolean encoded, boolean checkDate) -
Method Summary
Modifier and TypeMethodDescriptionboolean
byte
final char
charAt
(int index) char
final void
chop()
double
boolean
float
int
hashCode()
int
intValue()
boolean
final int
length()
long
short
final CharSequence
subSequence
(int start, int end) <T extends Enum>
Tstatic <T extends Enum>
Tstatic <T extends Enum>
TtoString()
final 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, 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:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-
toValue
-
toEnum
-
toEnum
-
toEnum
-
isContainer
public boolean isContainer()- Specified by:
isContainer
in interfaceValue
-
equals
-
hashCode
public int hashCode() -
length
public final int length()- Specified by:
length
in interfaceCharSequence
-
charAt
public final char charAt(int index) - Specified by:
charAt
in interfaceCharSequence
-
subSequence
- Specified by:
subSequence
in interfaceCharSequence
-
bigDecimalValue
- Specified by:
bigDecimalValue
in interfaceValue
-
bigIntegerValue
- Specified by:
bigIntegerValue
in interfaceValue
-
stringValue
- Specified by:
stringValue
in interfaceValue
-
stringValueEncoded
- Specified by:
stringValueEncoded
in interfaceValue
-
dateValue
-
intValue
public int intValue() -
longValue
public long longValue() -
byteValue
public byte byteValue() -
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
-
chop
public final void chop() -
charValue
public char charValue()
-