Package org.core.utils.entry
Class AbstractSnapshotValue<O,V>
java.lang.Object
org.core.utils.entry.AbstractSnapshotValue<O,V>
- All Implemented Interfaces:
SnapshotValue<O,V>
- Direct Known Subclasses:
AbstractSnapshotValue.AbstractIdentitySnapshotValue
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from interface org.core.utils.entry.SnapshotValue
SnapshotValue.IdentifySnapshotValue<O,V>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAbstractSnapshotValue(V value, Function<O,V> getter, BiConsumer<O,V> setter)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyValue(O obj)
clone()
getValue()
SnapshotValue<O,V>
storeValue(O obj)
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.core.utils.entry.SnapshotValue
canApplyTo
-
Field Details
-
getter
-
setter
-
value
-
-
Constructor Details
-
AbstractSnapshotValue
-
-
Method Details
-
setValue
- Specified by:
setValue
in interfaceSnapshotValue<O,V>
-
getValue
- Specified by:
getValue
in interfaceSnapshotValue<O,V>
-
storeValue
- Specified by:
storeValue
in interfaceSnapshotValue<O,V>
-
applyValue
- Specified by:
applyValue
in interfaceSnapshotValue<O,V>
-
clone
-