T
- The type of catalog typeM
- The manipulator typeI
- The immutable manipulator typepublic abstract class AbstractSingleCatalogData<T extends CatalogType,M extends VariantData<T,M,I>,I extends ImmutableVariantData<T,I,M>> extends AbstractSingleData<T,M,I> implements VariantData<T,M,I>
VariantData
implementation providing all implementation
requirements, except AbstractSingleData.asImmutable()
.defaultValue, usedKey, value
Modifier | Constructor and Description |
---|---|
protected |
AbstractSingleCatalogData(Key<Value<T>> usedKey,
T value) |
protected |
AbstractSingleCatalogData(Key<Value<T>> usedKey,
T value,
T defaultValue) |
protected |
AbstractSingleCatalogData(T value,
Key<Value<T>> usedKey)
Deprecated.
Use
AbstractSingleCatalogData(Key, CatalogType) instead. |
Modifier and Type | Method and Description |
---|---|
protected Value<?> |
getValueGetter()
Gets the
Value as a method since this manipulator only focuses
on a single value. |
DataContainer |
toContainer()
Serializes this object into a comprehensible
DataContainer . |
Value<T> |
type()
Gets the
Value of the the element type. |
asImmutable, equals, fillContainer, get, getValue, hashCode, registerGettersAndSetters, setValue, supports
getKeys, getValue, getValues, registerFieldGetter, registerFieldSetter, registerKeyValue, set, transform
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
asImmutable, copy, fill, fill, from, set, set, set, set, transform
getContentVersion
@Deprecated protected AbstractSingleCatalogData(T value, Key<Value<T>> usedKey)
AbstractSingleCatalogData(Key, CatalogType)
instead.protected Value<?> getValueGetter()
AbstractSingleData
Value
as a method since this manipulator only focuses
on a single value.getValueGetter
in class AbstractSingleData<T extends CatalogType,M extends VariantData<T,M,I>,I extends ImmutableVariantData<T,I,M>>
public Value<T> type()
VariantData
Value
of the the element type.type
in interface VariantData<T extends CatalogType,M extends VariantData<T,M,I>,I extends ImmutableVariantData<T,I,M>>
public DataContainer toContainer()
DataSerializable
DataContainer
.toContainer
in interface DataSerializable
toContainer
in class AbstractData<M extends VariantData<T,M,I>,I extends ImmutableVariantData<T,I,M>>