org.apache.directory.shared.ldap.util.tree
Interface DnNode<N>

All Known Implementing Classes:
DnBranchNode, DnLeafNode

public interface DnNode<N>

An interface for nodes in a tree designed to quickly lookup hierarchical DN. Branch nodes in this tree contain other nodes. Leaf nodes in the tree contain a reference to an object whose suffix is the path through the nodes of the tree from the root.

Author:
Apache Directory Project

Method Summary
 boolean isLeaf()
          Tells if the implementation is a leaf node.
 int size()
          Returns the number of entries under this node.
 

Method Detail

isLeaf

boolean isLeaf()
Tells if the implementation is a leaf node. If it's a branch node then false is returned.

Returns:
true if the class is a leaf node, false otherwise.

size

int size()
Returns the number of entries under this node. It includes the node itself, plus the sum of all it children and descendents.

Returns:
The number of descendents


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