org.apache.directory.server.core.avltree
Class AvlTreeCursor<K>

java.lang.Object
  extended by org.apache.directory.shared.ldap.cursor.AbstractCursor<K>
      extended by org.apache.directory.server.core.avltree.AvlTreeCursor<K>
All Implemented Interfaces:
java.lang.Iterable<K>, org.apache.directory.shared.ldap.cursor.Cursor<K>

public class AvlTreeCursor<K>
extends org.apache.directory.shared.ldap.cursor.AbstractCursor<K>

A Cursor for an AvlTree.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Constructor Summary
AvlTreeCursor(AvlTree<K> tree)
           
 
Method Summary
 void after(K element)
           
 void afterLast()
           
 boolean available()
           
 void before(K element)
           
 void beforeFirst()
           
 boolean first()
           
 K get()
           
 boolean isElementReused()
           
 boolean last()
           
 boolean next()
           
 boolean previous()
           
 
Methods inherited from class org.apache.directory.shared.ldap.cursor.AbstractCursor
checkNotClosed, close, close, isClosed, iterator, setClosureMonitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvlTreeCursor

public AvlTreeCursor(AvlTree<K> tree)
Method Detail

after

public void after(K element)
           throws java.lang.Exception
Throws:
java.lang.Exception

afterLast

public void afterLast()
               throws java.lang.Exception
Throws:
java.lang.Exception

available

public boolean available()

before

public void before(K element)
            throws java.lang.Exception
Throws:
java.lang.Exception

beforeFirst

public void beforeFirst()
                 throws java.lang.Exception
Throws:
java.lang.Exception

first

public boolean first()
              throws java.lang.Exception
Throws:
java.lang.Exception

get

public K get()
      throws java.lang.Exception
Throws:
java.lang.Exception

isElementReused

public boolean isElementReused()

last

public boolean last()
             throws java.lang.Exception
Throws:
java.lang.Exception

next

public boolean next()
             throws java.lang.Exception
Throws:
java.lang.Exception

previous

public boolean previous()
                 throws java.lang.Exception
Throws:
java.lang.Exception


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