Package net.sf.ehcache.store.disk.ods
Class AATreeSet.AbstractTreeNode<E>
- java.lang.Object
-
- net.sf.ehcache.store.disk.ods.AATreeSet.AbstractTreeNode<E>
-
- All Implemented Interfaces:
AATreeSet.Node<E>
- Direct Known Subclasses:
Region
public abstract static class AATreeSet.AbstractTreeNode<E> extends java.lang.Object implements AATreeSet.Node<E>
Abstract node implementation that can be extended with a custom payload.
-
-
Constructor Summary
Constructors Constructor Description AbstractTreeNode()Constructs an initial (leaf) node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdecrementLevel()Decrement and then return this node's new level.AATreeSet.Node<E>getLeft()Get this node's left child.intgetLevel()Get this node's level.AATreeSet.Node<E>getRight()Get this node's right child.intincrementLevel()Increment and then return this node's new level.voidsetLeft(AATreeSet.Node<E> node)Set this node's left child.voidsetLevel(int value)Set this node's level.voidsetRight(AATreeSet.Node<E> node)Set this node's right child.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.ehcache.store.disk.ods.AATreeSet.Node
compareTo, getPayload, swapPayload
-
-
-
-
Method Detail
-
setLeft
public void setLeft(AATreeSet.Node<E> node)
Set this node's left child.- Specified by:
setLeftin interfaceAATreeSet.Node<E>
-
setRight
public void setRight(AATreeSet.Node<E> node)
Set this node's right child.- Specified by:
setRightin interfaceAATreeSet.Node<E>
-
getLeft
public AATreeSet.Node<E> getLeft()
Get this node's left child.- Specified by:
getLeftin interfaceAATreeSet.Node<E>
-
getRight
public AATreeSet.Node<E> getRight()
Get this node's right child.- Specified by:
getRightin interfaceAATreeSet.Node<E>
-
getLevel
public int getLevel()
Get this node's level.- Specified by:
getLevelin interfaceAATreeSet.Node<E>
-
setLevel
public void setLevel(int value)
Set this node's level.- Specified by:
setLevelin interfaceAATreeSet.Node<E>
-
decrementLevel
public int decrementLevel()
Decrement and then return this node's new level.- Specified by:
decrementLevelin interfaceAATreeSet.Node<E>
-
incrementLevel
public int incrementLevel()
Increment and then return this node's new level.- Specified by:
incrementLevelin interfaceAATreeSet.Node<E>
-
-