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
FieldsModifier and TypeFieldDescriptionprotected final Vprotected final VersionedMapStoreDeltaImpl<K, V> -
Constructor Summary
ConstructorsConstructorDescriptionVersionedMapDeltaImpl(VersionedMapStoreDeltaImpl<K, V> store, boolean summarizeChanges, V defaultValue) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidvoidChecks the integrity of the map, and throws an exception if an inconsistency is detected.commit()Saves the state of the object.booleancontentEquals(AnyVersionedMap other) intprotected voidprotected voidgetAll()DiffCursor<K, V> getDiffCursor(Version state) longgetSize()voidvoidRestores the state of the object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getDefaultValuein interfaceVersionedMap<K,V>
-
commit
Description copied from interface:VersionedSaves the state of the object. -
restore
Description copied from interface:VersionedRestores the state of the object.- Specified by:
restorein interfaceVersioned- Parameters:
state- aVersionobject that marks the version. The state must be aVersionobject returned by a previousVersioned.commit()!
-
forward
-
backward
-
forward
-
backward
-
get
- Specified by:
getin interfaceVersionedMap<K,V>
-
getAll
- Specified by:
getAllin interfaceVersionedMap<K,V>
-
put
- Specified by:
putin interfaceVersionedMap<K,V>
-
putAll
- Specified by:
putAllin interfaceVersionedMap<K,V>
-
getSize
public long getSize()- Specified by:
getSizein interfaceAnyVersionedMap
-
getDiffCursor
- Specified by:
getDiffCursorin interfaceVersionedMap<K,V>
-
contentHashCode
- Specified by:
contentHashCodein interfaceAnyVersionedMap
-
contentEquals
- Specified by:
contentEqualsin interfaceAnyVersionedMap
-
checkIntegrity
public void checkIntegrity()Description copied from interface:AnyVersionedMapChecks the integrity of the map, and throws an exception if an inconsistency is detected.- Specified by:
checkIntegrityin interfaceAnyVersionedMap
-