Class VersionedMapDeltaImpl<K,V>
java.lang.Object
tools.refinery.store.map.internal.delta.VersionedMapDeltaImpl<K,V>
- All Implemented Interfaces:
AnyVersionedMap
,Versioned
,VersionedMap<K,
V>
-
Field Summary
Modifier and TypeFieldDescriptionprotected final V
protected final VersionedMapStoreDeltaImpl
<K, V> -
Constructor Summary
ConstructorDescriptionVersionedMapDeltaImpl
(VersionedMapStoreDeltaImpl<K, V> store, boolean summarizeChanges, V defaultValue) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
void
Checks the integrity of the map, and throws an exception if an inconsistency is detected.commit()
Saves the state of the object.boolean
contentEquals
(AnyVersionedMap other) int
protected void
protected void
getAll()
DiffCursor
<K, V> getDiffCursor
(Version state) long
getSize()
void
void
Restores the state of the object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface tools.refinery.store.map.AnyVersionedMap
equals, hashCode
-
Field Details
-
store
-
defaultValue
-
-
Constructor Details
-
VersionedMapDeltaImpl
public VersionedMapDeltaImpl(VersionedMapStoreDeltaImpl<K, V> store, boolean summarizeChanges, V defaultValue)
-
-
Method Details
-
getDefaultValue
- Specified by:
getDefaultValue
in interfaceVersionedMap<K,
V>
-
commit
Description copied from interface:Versioned
Saves the state of the object. -
restore
Description copied from interface:Versioned
Restores the state of the object.- Specified by:
restore
in interfaceVersioned
- Parameters:
state
- aVersion
object that marks the version. The state must be aVersion
object returned by a previousVersioned.commit()
!
-
forward
-
backward
-
forward
-
backward
-
get
- Specified by:
get
in interfaceVersionedMap<K,
V>
-
getAll
- Specified by:
getAll
in interfaceVersionedMap<K,
V>
-
put
- Specified by:
put
in interfaceVersionedMap<K,
V>
-
putAll
- Specified by:
putAll
in interfaceVersionedMap<K,
V>
-
getSize
public long getSize()- Specified by:
getSize
in interfaceAnyVersionedMap
-
getDiffCursor
- Specified by:
getDiffCursor
in interfaceVersionedMap<K,
V>
-
contentHashCode
- Specified by:
contentHashCode
in interfaceAnyVersionedMap
-
contentEquals
- Specified by:
contentEquals
in interfaceAnyVersionedMap
-
checkIntegrity
public void checkIntegrity()Description copied from interface:AnyVersionedMap
Checks the integrity of the map, and throws an exception if an inconsistency is detected.- Specified by:
checkIntegrity
in interfaceAnyVersionedMap
-