K
- The type for the KeyV
- The type for the stored valuepublic abstract class AbstractBorrowedFromSiblingResult<K,V> extends AbstractDeleteResult<K,V> implements BorrowedFromSiblingResult<K,V>
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractBorrowedFromSiblingResult.SiblingPosition
The two possible position for the sibling
|
Modifier and Type | Field and Description |
---|---|
protected AbstractBorrowedFromSiblingResult.SiblingPosition |
position
Tells if the sibling is the left or right one
|
Constructor and Description |
---|
AbstractBorrowedFromSiblingResult(List<Page<K,V>> copiedPages,
Page<K,V> modifiedPage,
Page<K,V> modifiedSibling,
Tuple<K,V> removedElement,
AbstractBorrowedFromSiblingResult.SiblingPosition position)
A constructor for RemoveResult with a list of copied pages.
|
AbstractBorrowedFromSiblingResult(Page<K,V> modifiedPage,
Page<K,V> modifiedSibling,
Tuple<K,V> removedElement,
AbstractBorrowedFromSiblingResult.SiblingPosition position)
The default constructor for RemoveResult.
|
Modifier and Type | Method and Description |
---|---|
Page<K,V> |
getModifiedSibling() |
boolean |
isFromLeft()
Tells if the sibling is on the left
|
boolean |
isFromRight()
Tells if the sibling is on the right
|
String |
toString() |
getModifiedPage, getRemovedElement, setModifiedPage
addCopiedPage, getCopiedPages
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getModifiedPage, getRemovedElement
addCopiedPage, getCopiedPages
protected AbstractBorrowedFromSiblingResult.SiblingPosition position
public AbstractBorrowedFromSiblingResult(Page<K,V> modifiedPage, Page<K,V> modifiedSibling, Tuple<K,V> removedElement, AbstractBorrowedFromSiblingResult.SiblingPosition position)
modifiedPage
- The modified pagemodifiedSibling
- The modified siblingremovedElement
- The removed element (can be null if the key wasn't present in the tree)public AbstractBorrowedFromSiblingResult(List<Page<K,V>> copiedPages, Page<K,V> modifiedPage, Page<K,V> modifiedSibling, Tuple<K,V> removedElement, AbstractBorrowedFromSiblingResult.SiblingPosition position)
copiedPages
- the list of copied pagesmodifiedPage
- The modified pagemodifiedSibling
- The modified siblingremovedElement
- The removed element (can be null if the key wasn't present in the tree)public Page<K,V> getModifiedSibling()
getModifiedSibling
in interface BorrowedFromSiblingResult<K,V>
public boolean isFromLeft()
isFromLeft
in interface BorrowedFromSiblingResult<K,V>
public boolean isFromRight()
isFromRight
in interface BorrowedFromSiblingResult<K,V>
public String toString()
toString
in class AbstractResult<K,V>
Object.toString()
Copyright © 2012-2013 Apache Mavibot Project Parent. All Rights Reserved.