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

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

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

A Cursor for an ArrayTree.

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

Constructor Summary
ArrayTreeCursor(ArrayTree<K> array)
          Create a cursor on an ArrayTree
 
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

ArrayTreeCursor

public ArrayTreeCursor(ArrayTree<K> array)
Create a cursor on an ArrayTree

Parameters:
array - The array we want a cursor for
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.