V
- public class JSONValue<V> extends Iced
Modifier and Type | Field and Description |
---|---|
protected java.lang.Class<V> |
_clazz |
protected java.lang.String |
_json |
Constructor and Description |
---|
JSONValue(java.lang.String json) |
JSONValue(java.lang.String json,
java.lang.Class<V> clazz) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
static <V> JSONValue<V> |
fromValue(V v) |
int |
hashCode() |
V |
value() |
<T> T |
valueAs(java.lang.Class<T> clazz) |
<T extends Iced,S extends Schema<T,S>> |
valueAs(java.lang.Class<T> clazz,
java.lang.Class<S> schema) |
<T extends Iced,S extends Schema<T,S>> |
valueAsArray(java.lang.Class<T[]> clazz,
java.lang.Class<S[]> schema) |
<S extends Schema> |
valueAsSchema(java.lang.Class<S> schema) |
<S extends Schema> |
valueAsSchemas(java.lang.Class<S[]> schema) |
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonBytes, toJsonString, write, writeExternal, writeJSON
protected java.lang.String _json
protected java.lang.Class<V> _clazz
public JSONValue(java.lang.String json)
public JSONValue(java.lang.String json, java.lang.Class<V> clazz)
public static <V> JSONValue<V> fromValue(V v)
public V value()
public <T> T valueAs(java.lang.Class<T> clazz)
public <T extends Iced,S extends Schema<T,S>> T valueAs(java.lang.Class<T> clazz, java.lang.Class<S> schema)
public <T extends Iced,S extends Schema<T,S>> T[] valueAsArray(java.lang.Class<T[]> clazz, java.lang.Class<S[]> schema)
public <S extends Schema> S valueAsSchema(java.lang.Class<S> schema)
public <S extends Schema> S[] valueAsSchemas(java.lang.Class<S[]> schema)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object