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 int
deltaHashCode
private int
deltaSize
private boolean
isModified
private boolean
isReplaced
private K
replacedValue
-
Constructor Summary
Constructors Constructor Description SetNodeResultImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDeltaHashCode()
int
getDeltaSize()
K
getReplacedValue()
boolean
hasReplacedValue()
boolean
isModified()
void
modified()
void
updated(K replacedValue)
void
updateDeltaHashCode(int deltaHashCode)
void
updateDeltaSize(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:
getDeltaSize
in interfaceSetNodeResult<K>
-
updateDeltaSize
public void updateDeltaSize(int deltaSize)
- Specified by:
updateDeltaSize
in interfaceSetNodeResult<K>
-
getDeltaHashCode
public int getDeltaHashCode()
- Specified by:
getDeltaHashCode
in interfaceSetNodeResult<K>
-
updateDeltaHashCode
public void updateDeltaHashCode(int deltaHashCode)
- Specified by:
updateDeltaHashCode
in interfaceSetNodeResult<K>
-
modified
public void modified()
- Specified by:
modified
in interfaceSetNodeResult<K>
-
updated
public void updated(K replacedValue)
- Specified by:
updated
in interfaceSetNodeResult<K>
-
isModified
public boolean isModified()
- Specified by:
isModified
in interfaceSetNodeResult<K>
-
hasReplacedValue
public boolean hasReplacedValue()
- Specified by:
hasReplacedValue
in interfaceSetNodeResult<K>
-
getReplacedValue
public K getReplacedValue()
- Specified by:
getReplacedValue
in interfaceSetNodeResult<K>
-
-