Package org.apache.groovy.json.internal
Class ValueContainer
java.lang.Object
org.apache.groovy.json.internal.ValueContainer
- All Implemented Interfaces:
CharSequence,Value
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionValueContainer(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, waitMethods 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:
booleanValuein interfaceValue
-
stringValue
- Specified by:
stringValuein interfaceValue
-
stringValueEncoded
- Specified by:
stringValueEncodedin interfaceValue
-
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-
toValue
-
toEnum
-
isContainer
public boolean isContainer()- Specified by:
isContainerin interfaceValue
-
chop
public void chop() -
charValue
public char charValue() -
length
public int length()- Specified by:
lengthin interfaceCharSequence
-
charAt
public char charAt(int index) - Specified by:
charAtin interfaceCharSequence
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-
dateValue
-
byteValue
public byte byteValue() -
shortValue
public short shortValue()- Specified by:
shortValuein interfaceValue
-
bigDecimalValue
- Specified by:
bigDecimalValuein interfaceValue
-
bigIntegerValue
- Specified by:
bigIntegerValuein interfaceValue
-
doubleValue
public double doubleValue()- Specified by:
doubleValuein interfaceValue
-
floatValue
public float floatValue()- Specified by:
floatValuein interfaceValue
-