K - The type for the KeyV - The type for the stored valueclass ModifyResult<K,V> extends AbstractResult<K,V> implements InsertResult<K,V>
| Modifier and Type | Field and Description |
|---|---|
protected Page<K,V> |
modifiedPage
The modified page reference
|
protected V |
modifiedValue
The modified value if the key was found in the tree
|
| Constructor and Description |
|---|
ModifyResult(java.util.List<Page<K,V>> copiedPages,
Page<K,V> modifiedPage,
V modifiedValue)
A constructor for ModifyResult which takes a list of copied pages.
|
ModifyResult(Page<K,V> modifiedPage,
V modifiedValue)
The default constructor for ModifyResult.
|
| Modifier and Type | Method and Description |
|---|---|
Page<K,V> |
getModifiedPage() |
V |
getModifiedValue() |
void |
setModifiedPage(Page<K,V> modifiedPage)
Set the modified page
|
java.lang.String |
toString() |
addCopiedPage, getCopiedPagesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddCopiedPage, getCopiedPagesprotected V modifiedValue
public ModifyResult(Page<K,V> modifiedPage, V modifiedValue)
modifiedPage - The modified pagemodifiedvalue - The modified value (can be null if the key wasn't present in the tree)public ModifyResult(java.util.List<Page<K,V>> copiedPages, Page<K,V> modifiedPage, V modifiedValue)
copiedPages - the list of copied pagesmodifiedPage - The modified pagemodifiedvalue - The modified value (can be null if the key wasn't present in the tree)public void setModifiedPage(Page<K,V> modifiedPage)
modifiedPage - The new modified pagepublic V getModifiedValue()
public java.lang.String toString()
toString in class AbstractResult<K,V>Object.toString()