| Package | Description |
|---|---|
| org.dbrain.data | |
| org.dbrain.data.impl.json.jackson | |
| org.dbrain.data.impl.value | |
| org.dbrain.data.json |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ValueList
An ordered list of value.
|
interface |
ValueMap
An map of value.
|
| Modifier and Type | Method and Description |
|---|---|
static Value |
Value.nullValue() |
static Value |
Value.of(BigDecimal bd) |
static Value |
Value.of(BigInteger bi) |
static Value |
Value.of(Boolean b) |
static Value |
Value.of(Byte b) |
static Value |
Value.of(CharSequence s) |
static Value |
Value.of(Double v) |
static Value |
Value.of(Float v) |
static Value |
Value.of(Integer i) |
static Value |
Value.of(Long l) |
static Value |
Value.of(Object o) |
static Value |
Value.of(Object v,
Function<Object,Value> valueFromObject)
Cast of one of the primitive type.
|
static Value |
Value.of(Short s) |
static Value |
Value.of(String s) |
static Value |
Value.of(Value v)
Make sure Value is not null.
|
| Modifier and Type | Method and Description |
|---|---|
ValueList.Builder |
ValueList.Builder.add(Value v) |
static Value |
Value.of(Value v)
Make sure Value is not null.
|
ValueMap.Builder |
ValueMap.Builder.put(String name,
Value v) |
| Modifier and Type | Method and Description |
|---|---|
static Value |
Value.of(Object v,
Function<Object,Value> valueFromObject)
Cast of one of the primitive type.
|
| Modifier and Type | Method and Description |
|---|---|
Value |
JsonValueDeserializer.deserialize(com.fasterxml.jackson.core.JsonParser jp,
com.fasterxml.jackson.databind.DeserializationContext ctxt) |
Value |
JacksonJsonBridge.objectToValue(Object o)
Convert object to value.
|
static Value |
JsonValueParser.parseValue(com.fasterxml.jackson.core.JsonParser parser) |
Value |
JacksonJsonBridge.parseValue(com.fasterxml.jackson.core.JsonParser r)
Parse a value from a json parser.
|
Value |
JacksonJsonBridge.parseValue(Reader r)
Parse a value from a reader.
|
Value |
JacksonJsonBridge.parseValue(String r)
Parse a value from string.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JsonValueSerializer.serialize(Value value,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider) |
void |
JsonValueSerializer.writeValue(Value value,
com.fasterxml.jackson.core.JsonGenerator w)
Write a value to a generator.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BoolValueImpl
Wrap a scalar value;
|
class |
ListValueImpl
A list of simple values.
|
class |
MapValueImpl
Implementation of the Value.Map.
|
class |
NullValueImpl
Wrap a scalar value;
|
class |
NumberValueImpl
Wrap a number value;
|
class |
StringValueImpl
Wrap a scalar value;
|
| Modifier and Type | Field and Description |
|---|---|
static Value |
BoolValueImpl.FALSE |
static Value |
NullValueImpl.NULL |
static Value |
BoolValueImpl.TRUE |
| Modifier and Type | Method and Description |
|---|---|
Value |
MapValueImpl.compute(String key,
BiFunction<? super String,? super Value,? extends Value> remappingFunction) |
Value |
MapValueImpl.computeIfAbsent(String key,
Function<? super String,? extends Value> mappingFunction) |
Value |
MapValueImpl.computeIfPresent(String key,
BiFunction<? super String,? super Value,? extends Value> remappingFunction) |
Value |
ListValueImpl.get(int index) |
Value |
MapValueImpl.get(Object key) |
Value |
MapValueImpl.getOrDefault(Object key,
Value defaultValue) |
Value |
MapValueImpl.merge(String key,
Value value,
BiFunction<? super Value,? super Value,? extends Value> remappingFunction) |
Value |
MapValueImpl.put(String key,
Value value) |
Value |
MapValueImpl.putIfAbsent(String key,
Value value) |
Value |
ListValueImpl.remove(int index) |
Value |
MapValueImpl.remove(Object key) |
Value |
MapValueImpl.replace(String key,
Value value) |
Value |
ListValueImpl.set(int index,
Value element) |
| Modifier and Type | Method and Description |
|---|---|
Set<Map.Entry<String,Value>> |
MapValueImpl.entrySet() |
Iterator<Value> |
ListValueImpl.iterator() |
ListIterator<Value> |
ListValueImpl.listIterator() |
ListIterator<Value> |
ListValueImpl.listIterator(int index) |
List<Value> |
ListValueImpl.subList(int fromIndex,
int toIndex) |
Collection<Value> |
MapValueImpl.values() |
| Modifier and Type | Method and Description |
|---|---|
void |
ListValueImpl.add(int index,
Value element) |
ValueList.Builder |
ValueListBuilderImpl.add(Value v) |
boolean |
ListValueImpl.add(Value jsonValue) |
Value |
MapValueImpl.getOrDefault(Object key,
Value defaultValue) |
Value |
MapValueImpl.merge(String key,
Value value,
BiFunction<? super Value,? super Value,? extends Value> remappingFunction) |
Value |
MapValueImpl.put(String key,
Value value) |
ValueMap.Builder |
ValueMapBuilderImpl.put(String name,
Value v) |
Value |
MapValueImpl.putIfAbsent(String key,
Value value) |
Value |
MapValueImpl.replace(String key,
Value value) |
boolean |
MapValueImpl.replace(String key,
Value oldValue,
Value newValue) |
Value |
ListValueImpl.set(int index,
Value element) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ListValueImpl.addAll(Collection<? extends Value> c) |
boolean |
ListValueImpl.addAll(int index,
Collection<? extends Value> c) |
Value |
MapValueImpl.compute(String key,
BiFunction<? super String,? super Value,? extends Value> remappingFunction) |
Value |
MapValueImpl.compute(String key,
BiFunction<? super String,? super Value,? extends Value> remappingFunction) |
Value |
MapValueImpl.computeIfAbsent(String key,
Function<? super String,? extends Value> mappingFunction) |
Value |
MapValueImpl.computeIfPresent(String key,
BiFunction<? super String,? super Value,? extends Value> remappingFunction) |
Value |
MapValueImpl.computeIfPresent(String key,
BiFunction<? super String,? super Value,? extends Value> remappingFunction) |
void |
MapValueImpl.forEach(BiConsumer<? super String,? super Value> action) |
Value |
MapValueImpl.merge(String key,
Value value,
BiFunction<? super Value,? super Value,? extends Value> remappingFunction) |
Value |
MapValueImpl.merge(String key,
Value value,
BiFunction<? super Value,? super Value,? extends Value> remappingFunction) |
Value |
MapValueImpl.merge(String key,
Value value,
BiFunction<? super Value,? super Value,? extends Value> remappingFunction) |
void |
MapValueImpl.putAll(Map<? extends String,? extends Value> m) |
void |
MapValueImpl.replaceAll(BiFunction<? super String,? super Value,? extends Value> function) |
void |
MapValueImpl.replaceAll(BiFunction<? super String,? super Value,? extends Value> function) |
| Constructor and Description |
|---|
MapValueImpl(HashMap<String,Value> delegate) |
| Modifier and Type | Method and Description |
|---|---|
Value |
JsonBridge.objectToValue(Object o) |
Value |
JsonBridge.parseValue(Reader r) |
Value |
JsonBridge.parseValue(String r) |
Copyright © 2015. All rights reserved.