TDescriptor - will be DataStoreTypes.ItemDescriptor or DataStoreTypes.SerializedItemDescriptorpublic static final class DataStoreTypes.FullDataSet<TDescriptor>
extends java.lang.Object
Since the generic type signature for the data set is somewhat complicated (it is an ordered
list of key-value pairs where each key is a DataStoreTypes.DataKind, and each value is another ordered
list of key-value pairs for the individual data items), this type simplifies the declaration of
data store methods and makes it easier to see what the type represents.
| Constructor and Description |
|---|
FullDataSet(java.lang.Iterable<java.util.Map.Entry<DataStoreTypes.DataKind,DataStoreTypes.KeyedItems<TDescriptor>>> data)
Constructs a new instance.
|
FullDataSet(java.lang.Iterable<java.util.Map.Entry<DataStoreTypes.DataKind,DataStoreTypes.KeyedItems<TDescriptor>>> data,
boolean shouldPersist)
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.Iterable<java.util.Map.Entry<DataStoreTypes.DataKind,DataStoreTypes.KeyedItems<TDescriptor>>> |
getData()
Returns the wrapped data set.
|
int |
hashCode() |
boolean |
shouldPersist()
Returns whether this data should be persisted to persistent stores.
|
public FullDataSet(java.lang.Iterable<java.util.Map.Entry<DataStoreTypes.DataKind,DataStoreTypes.KeyedItems<TDescriptor>>> data)
data - the data setpublic FullDataSet(java.lang.Iterable<java.util.Map.Entry<DataStoreTypes.DataKind,DataStoreTypes.KeyedItems<TDescriptor>>> data, boolean shouldPersist)
data - the data setshouldPersist - true if the data should be persisted to persistent stores, false otherwisepublic java.lang.Iterable<java.util.Map.Entry<DataStoreTypes.DataKind,DataStoreTypes.KeyedItems<TDescriptor>>> getData()
public boolean shouldPersist()
If true, indicates that the data should be propagated to any connected persistent stores. If false, indicates that the data should not be persisted (e.g., data from an untrusted source like a file cache).
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object