Class SetNodeResultImpl<K>
- java.lang.Object
-
- io.usethesource.capsule.core.trie.SetNodeResultImpl<K>
-
- All Implemented Interfaces:
SetNodeResult<K>
public class SetNodeResultImpl<K> extends java.lang.Object implements SetNodeResult<K>
-
-
Field Summary
Fields Modifier and Type Field Description private intdeltaHashCodeprivate intdeltaSizeprivate booleanisModifiedprivate booleanisReplacedprivate KreplacedValue
-
Constructor Summary
Constructors Constructor Description SetNodeResultImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDeltaHashCode()intgetDeltaSize()KgetReplacedValue()booleanhasReplacedValue()booleanisModified()voidmodified()voidupdated(K replacedValue)voidupdateDeltaHashCode(int deltaHashCode)voidupdateDeltaSize(int deltaSize)
-
-
-
Field Detail
-
replacedValue
private K replacedValue
-
isModified
private boolean isModified
-
isReplaced
private boolean isReplaced
-
deltaSize
private int deltaSize
-
deltaHashCode
private int deltaHashCode
-
-
Method Detail
-
getDeltaSize
public int getDeltaSize()
- Specified by:
getDeltaSizein interfaceSetNodeResult<K>
-
updateDeltaSize
public void updateDeltaSize(int deltaSize)
- Specified by:
updateDeltaSizein interfaceSetNodeResult<K>
-
getDeltaHashCode
public int getDeltaHashCode()
- Specified by:
getDeltaHashCodein interfaceSetNodeResult<K>
-
updateDeltaHashCode
public void updateDeltaHashCode(int deltaHashCode)
- Specified by:
updateDeltaHashCodein interfaceSetNodeResult<K>
-
modified
public void modified()
- Specified by:
modifiedin interfaceSetNodeResult<K>
-
updated
public void updated(K replacedValue)
- Specified by:
updatedin interfaceSetNodeResult<K>
-
isModified
public boolean isModified()
- Specified by:
isModifiedin interfaceSetNodeResult<K>
-
hasReplacedValue
public boolean hasReplacedValue()
- Specified by:
hasReplacedValuein interfaceSetNodeResult<K>
-
getReplacedValue
public K getReplacedValue()
- Specified by:
getReplacedValuein interfaceSetNodeResult<K>
-
-