Interface ObjectRecord<S,V>
- Type Parameters:
V- the type of the backing Object.
- All Superinterfaces:
Record<S,V>
-
Method Summary
Modifier and TypeMethodDescriptionstatic <S,V> ObjectRecord <S, V> create(S stream, V value) toMapRecord(HashMapper<? super V, HK, HV> mapper) Apply the givenHashMapperto the backing value to create a newMapRecord.<SK> ObjectRecord<SK, V> withStreamKey(SK key) Create a new instance ofRecordwith the given key to store the record at.Methods inherited from interface Record
getId, getRequiredStream, getStream, getValue
-
Method Details
-
create
- Parameters:
stream- the stream key.value- the value.- Returns:
- the
ObjectRecordholding thestreamkey andvalue.
-
withId
-
withStreamKey
-
toMapRecord
Apply the givenHashMapperto the backing value to create a newMapRecord. An already assignedidis carried over to the new instance.
-