[Java] Class ValueContainer
- org.apache.groovy.json.internal.ValueContainer
- All Implemented Interfaces and Traits:
- CharSequence, Value
public class ValueContainer
Field Summary
Modifiers | Name | Description |
---|---|---|
static Value | FALSE | |
static Value | NULL | |
static Value | TRUE | |
boolean | decodeStrings | |
Type | type | |
Object | value |
Constructor Summary
Constructor and description |
---|
ValueContainer
(Object value, Type type, boolean decodeStrings) |
ValueContainer
(Type type) |
ValueContainer
(Map<String, Object> map) |
ValueContainer
(List<Object> list) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public BigDecimal |
bigDecimalValue() | |
public BigInteger |
bigIntegerValue() | |
public boolean |
booleanValue() | |
public byte |
byteValue() | |
public char |
charAt(int index) | |
public char |
charValue() | |
public void |
chop() | |
public Date |
dateValue() | |
public double |
doubleValue() | |
public float |
floatValue() | |
public int |
intValue() | |
public boolean |
isContainer() | |
public int |
length() | |
public long |
longValue() | |
public short |
shortValue() | |
public String |
stringValue() | |
public String |
stringValueEncoded() | |
public CharSequence |
subSequence(int start, int end) | |
<T extends Enum> | public T |
toEnum(Class<T> cls) |
public String |
toString() | |
public Object |
toValue() |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail
public static final Value FALSE
public static final Value NULL
public static final Value TRUE
public boolean decodeStrings
public Type type
public Object value
Constructor Detail
public ValueContainer(Object value, Type type, boolean decodeStrings)
public ValueContainer(Type type)
public ValueContainer(Map<String, Object> map)
public ValueContainer(List<Object> list)
Method Detail
public BigDecimal bigDecimalValue()
public BigInteger bigIntegerValue()
public boolean booleanValue()
public byte byteValue()
public char charAt(int index)
public char charValue()
public void chop()
public Date dateValue()
public double doubleValue()
public float floatValue()
public int intValue()
public boolean isContainer()
public int length()
public long longValue()
public short shortValue()
public String stringValue()
public String stringValueEncoded()
public CharSequence subSequence(int start, int end)
<T extends Enum> public T toEnum(Class<T> cls)
public String toString()
public Object toValue()
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/apache/groovy/json/internal/ValueContainer.html