org.apache.directory.server.core.partition.tree
Class LeafNode

java.lang.Object
  extended by org.apache.directory.server.core.partition.tree.LeafNode
All Implemented Interfaces:
Node

public class LeafNode
extends java.lang.Object
implements Node

A leaf node which stores a Partition. These objects are stored in BranchNodes.

Author:
Apache Directory Project

Constructor Summary
LeafNode(Partition partition)
          Creates a new instance of LeafNode.
 
Method Summary
 Partition getPartition()
           
 boolean isLeaf()
          Tells if the implementation is a leaf node.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LeafNode

public LeafNode(Partition partition)
Creates a new instance of LeafNode.

Parameters:
partition - the partition to store
Method Detail

isLeaf

public boolean isLeaf()
Description copied from interface: Node
Tells if the implementation is a leaf node. If it's a branch node then false is returned.

Specified by:
isLeaf in interface Node
Returns:
true if the class is a leaf node, false otherwise.
See Also:
Node.isLeaf()

getPartition

public Partition getPartition()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.