Package org.apache.groovy.json.internal
Class ValueContainer
java.lang.Object
org.apache.groovy.json.internal.ValueContainer
- All Implemented Interfaces:
CharSequence
,Value
-
Field Summary
-
Constructor Summary
ConstructorDescriptionValueContainer
(Object value, Type type, boolean decodeStrings) ValueContainer
(List<Object> list) ValueContainer
(Map<String, Object> map) ValueContainer
(Type type) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Field Details
-
TRUE
-
FALSE
-
NULL
-
value
-
type
-
decodeStrings
public boolean decodeStrings
-
-
Constructor Details
-
ValueContainer
-
ValueContainer
-
ValueContainer
-
ValueContainer
-
-
Method Details
-
intValue
public int intValue() -
longValue
public long longValue() -
booleanValue
public boolean booleanValue()- Specified by:
booleanValue
in interfaceValue
-
stringValue
- Specified by:
stringValue
in interfaceValue
-
stringValueEncoded
- Specified by:
stringValueEncoded
in interfaceValue
-
toString
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-
toValue
-
toEnum
-
isContainer
public boolean isContainer()- Specified by:
isContainer
in interfaceValue
-
chop
public void chop() -
charValue
public char charValue() -
length
public int length()- Specified by:
length
in interfaceCharSequence
-
charAt
public char charAt(int index) - Specified by:
charAt
in interfaceCharSequence
-
subSequence
- Specified by:
subSequence
in interfaceCharSequence
-
dateValue
-
byteValue
public byte byteValue() -
shortValue
public short shortValue()- Specified by:
shortValue
in interfaceValue
-
bigDecimalValue
- Specified by:
bigDecimalValue
in interfaceValue
-
bigIntegerValue
- Specified by:
bigIntegerValue
in interfaceValue
-
doubleValue
public double doubleValue()- Specified by:
doubleValue
in interfaceValue
-
floatValue
public float floatValue()- Specified by:
floatValue
in interfaceValue
-