ehcache

net.sf.ehcache.store.disk.ods
Class AATreeSet.AbstractTreeNode<E>

java.lang.Object
  extended by net.sf.ehcache.store.disk.ods.AATreeSet.AbstractTreeNode<E>
All Implemented Interfaces:
AATreeSet.Node<E>
Direct Known Subclasses:
Region
Enclosing class:
AATreeSet<T extends Comparable>

public abstract static class AATreeSet.AbstractTreeNode<E>
extends Object
implements AATreeSet.Node<E>

Abstract node implementation that can be extended with a custom payload.


Constructor Summary
AATreeSet.AbstractTreeNode()
          Constructs an initial (leaf) node.
 
Method Summary
 int decrementLevel()
          Decrement and then return this node's new level.
 AATreeSet.Node<E> getLeft()
          Get this node's left child.
 int getLevel()
          Get this node's level.
 AATreeSet.Node<E> getRight()
          Get this node's right child.
 int incrementLevel()
          Increment and then return this node's new level.
 void setLeft(AATreeSet.Node<E> node)
          Set this node's left child.
 void setLevel(int value)
          Set this node's level.
 void setRight(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
 

Constructor Detail

AATreeSet.AbstractTreeNode

public AATreeSet.AbstractTreeNode()
Constructs an initial (leaf) node.

Method Detail

setLeft

public void setLeft(AATreeSet.Node<E> node)
Set this node's left child.

Specified by:
setLeft in interface AATreeSet.Node<E>

setRight

public void setRight(AATreeSet.Node<E> node)
Set this node's right child.

Specified by:
setRight in interface AATreeSet.Node<E>

getLeft

public AATreeSet.Node<E> getLeft()
Get this node's left child.

Specified by:
getLeft in interface AATreeSet.Node<E>

getRight

public AATreeSet.Node<E> getRight()
Get this node's right child.

Specified by:
getRight in interface AATreeSet.Node<E>

getLevel

public int getLevel()
Get this node's level.

Specified by:
getLevel in interface AATreeSet.Node<E>

setLevel

public void setLevel(int value)
Set this node's level.

Specified by:
setLevel in interface AATreeSet.Node<E>

decrementLevel

public int decrementLevel()
Decrement and then return this node's new level.

Specified by:
decrementLevel in interface AATreeSet.Node<E>

incrementLevel

public int incrementLevel()
Increment and then return this node's new level.

Specified by:
incrementLevel in interface AATreeSet.Node<E>

ehcache

Copyright 2001-2016, Terracotta, Inc.