use of com.torodb.kvdocument.values.heap.ListKvArray in project torodb by torodb.
the class BaseArrayToArrayConverter method fromJsonValue.
@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public KvArray fromJsonValue(JsonArray value) {
List<KvValue<?>> list = new ArrayList<>(value.size());
for (JsonValue child : value) {
ArrayConverter converter = valueToArrayConverterProvider.fromJsonValue(child);
list.add(converter.fromJsonValue(child));
}
return new ListKvArray(list);
}
use of com.torodb.kvdocument.values.heap.ListKvArray in project torodb by torodb.
the class BaseArrayValueToJsonConverter method toValue.
@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public KvArray toValue(JsonArray value) {
List<KvValue<?>> list = new ArrayList<>(value.size());
for (JsonValue child : value) {
ArrayConverter converter = valueToArrayConverterProvider.fromJsonValue(child);
list.add(converter.fromJsonValue(child));
}
return new ListKvArray(list);
}
Aggregations