Class MultiValueListConverter<T,R extends List<T>,V extends org.msgpack.value.Value>
- java.lang.Object
-
- io.tarantool.driver.mappers.converters.value.custom.MultiValueListConverter<T,R,V>
-
- All Implemented Interfaces:
Converter
,ValueConverter<org.msgpack.value.ArrayValue,R>
,Serializable
public class MultiValueListConverter<T,R extends List<T>,V extends org.msgpack.value.Value> extends Object implements ValueConverter<org.msgpack.value.ArrayValue,R>
ArrayValue
toList
converter for given item type- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MultiValueListConverter(ValueConverter<V,T> valueConverter, Supplier<R> containerSupplier)
Basic constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description R
fromValue(org.msgpack.value.ArrayValue value)
Convert MessagePack entity to a Java object-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.tarantool.driver.mappers.converters.ValueConverter
canConvertValue
-
-
-
-
Constructor Detail
-
MultiValueListConverter
public MultiValueListConverter(ValueConverter<V,T> valueConverter, Supplier<R> containerSupplier)
Basic constructor- Parameters:
valueConverter
- converter for result itemscontainerSupplier
- supplier for an empty collection of the result type
-
-
Method Detail
-
fromValue
public R fromValue(org.msgpack.value.ArrayValue value)
Description copied from interface:ValueConverter
Convert MessagePack entity to a Java object
-
-