public interface SerializingValueHolder<T,S extends Serializable>
It is important to note that the serialized value data type must conform to either of these simple types:
or of the following composed types, whose elements again must conform to this rule:Modifier and Type | Field and Description |
---|---|
static AspectType<SerializingValueHolder> |
TYPE
The aspect's type.
|
Modifier and Type | Method and Description |
---|---|
S |
getSerializedValue()
Provide a serialized form of the currently stored value.
|
T |
getValue()
Get the current value stored by this value holder.
|
boolean |
isEmpty()
Indicates that the currently hold value is considered to represent an empty value.
|
void |
setSerializedValue(S serialization)
Receive a serialized form as value to store.
|
void |
setValue(T value)
Set the given value to be stored by this value holder.
|
static final AspectType<SerializingValueHolder> TYPE
@Nullable T getValue()
void setValue(@Nullable T value)
value
- A value to store.boolean isEmpty()
true
, if value is considered empty.@Nullable S getSerializedValue()
Copyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408