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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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
-
restore
-
forward
-
backward
-
forward
-
backward
-
get
-
getAll
-
put
-
putAll
-
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
-