K - The type for the KeyV - The type for the stored valueabstract 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 |
|---|---|
private Page<K,V> |
modifiedSibling
The modified sibling reference
|
protected AbstractBorrowedFromSiblingResult.SiblingPosition |
position
Tells if the sibling is the left or right one
|
| Constructor and Description |
|---|
AbstractBorrowedFromSiblingResult(java.util.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
|
java.lang.String |
toString() |
getModifiedPage, getRemovedElement, setModifiedPageaddCopiedPage, getCopiedPagesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetModifiedPage, getRemovedElementaddCopiedPage, getCopiedPagesprotected AbstractBorrowedFromSiblingResult.SiblingPosition position
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)AbstractBorrowedFromSiblingResult(java.util.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 java.lang.String toString()
toString in class AbstractResult<K,V>Object.toString()