K
- The type for the KeyV
- The type for the stored valuepublic class 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(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
|
String |
toString() |
addCopiedPage, getCopiedPages
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addCopiedPage, getCopiedPages
protected 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(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 String toString()
toString
in class AbstractResult<K,V>
Object.toString()
Copyright © 2012-2013 Apache Mavibot Project Parent. All Rights Reserved.