Interface DataStore
- 
 public interface DataStore
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceDataStore.Builder
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static DataStore.Builderbuilder()Returns theDataStorebuilder.voiddeserialize(DataManipulator.Mutable dataManipulator, DataView view)Deserializes the data from theDataViewand puts it in theDataManipulator.Mutable.default DataManipulator.Mutabledeserialize(DataView view)Deserializes theDataViewas aDataManipulator.Mutable.static <T,V extends Value<T>>
 DataStoreof(Key<V> key, DataQuery dataQuery, io.leangen.geantyref.TypeToken<? extends DataHolder> typeToken, io.leangen.geantyref.TypeToken<? extends DataHolder>... typeTokens)static <T,V extends Value<T>>
 DataStoreof(Key<V> key, DataQuery dataQuery, Class<? extends DataHolder> type, Class<? extends DataHolder>... types)default DataViewserialize(Iterable<Value<?>> values)Serializes theValues.default DataViewserialize(Iterable<Value<?>> values, DataView view)default DataViewserialize(DataManipulator dataManipulator)Serializes the values of theDataManipulator.DataViewserialize(DataManipulator dataManipulator, DataView view)Serializes the values of theDataManipulatorinto theDataView.Collection<Type>supportedTypes()Gets the supportedDataHoldertypes.
 
- 
- 
- 
Method Detail- 
supportedTypesCollection<Type> supportedTypes() Gets the supportedDataHoldertypes.Every returned Typewill be a subtype ofDataHolder.- Returns:
- The supported dataHolder type.
 
 - 
serializeDataView serialize(DataManipulator dataManipulator, DataView view) Serializes the values of theDataManipulatorinto theDataView.- Parameters:
- dataManipulator- The data manipulator
- view- The data view to serialize to
- Returns:
- The view, for chaining
 
 - 
serializedefault DataView serialize(Iterable<Value<?>> values, DataView view) - Parameters:
- values- The values to serialize
- view- The view
- Returns:
- The view, for chaining
 
 - 
serializedefault DataView serialize(Iterable<Value<?>> values) Serializes theValues.- Parameters:
- values- The value container
- Returns:
- This view, for chaining
 
 - 
serializedefault DataView serialize(DataManipulator dataManipulator) Serializes the values of theDataManipulator.- Parameters:
- dataManipulator- The data manipulator
- Returns:
- This view, for chaining
 
 - 
deserializevoid deserialize(DataManipulator.Mutable dataManipulator, DataView view) Deserializes the data from theDataViewand puts it in theDataManipulator.Mutable.- Parameters:
- dataManipulator- The mutable data manipulator
- view- The data view to deserialize
 
 - 
deserializedefault DataManipulator.Mutable deserialize(DataView view) Deserializes theDataViewas aDataManipulator.Mutable.- Parameters:
- view- The data view to deserialize
- Returns:
- The value store
 
 - 
of@SafeVarargs static <T,V extends Value<T>> DataStore of(Key<V> key, DataQuery dataQuery, io.leangen.geantyref.TypeToken<? extends DataHolder> typeToken, io.leangen.geantyref.TypeToken<? extends DataHolder>... typeTokens) Provides aDataStorefor a singleKey.Note that default deserializers do not support Collection,Mapor Array types! UseDataStore.Builder.SerializersStep.key(Key, BiConsumer, Function)for these.- Parameters:
- key- The data key
- dataQuery- The dataQuery to serialize this key under
- typeTokens- The dataHolder types
- Returns:
- The new data store
 
 - 
of@SafeVarargs static <T,V extends Value<T>> DataStore of(Key<V> key, DataQuery dataQuery, Class<? extends DataHolder> type, Class<? extends DataHolder>... types) Provides aDataStorefor a singleKey.Note that default deserializers do not support Collection,Mapor Array types! UseDataStore.Builder.SerializersStep.key(Key, BiConsumer, Function)for these.- Parameters:
- key- The data key
- dataQuery- The dataQuery to serialize this key under
- types- The dataHolder types
- Returns:
- The new data store
 
 - 
builderstatic DataStore.Builder builder() Returns theDataStorebuilder.- Returns:
- The dataStore builder.
 
 
- 
 
-