jdbm.helper
Interface TupleBrowser<K,V>


public interface TupleBrowser<K,V>

Browser to traverse a collection of tuples. The browser allows for forward and reverse order traversal.

Version:
$Id: TupleBrowser.java,v 1.2 2001/05/19 14:02:00 boisvert Exp $
Author:
Alex Boisvert

Method Summary
 boolean getNext(Tuple<K,V> tuple)
          Get the next tuple.
 boolean getPrevious(Tuple<K,V> tuple)
          Get the previous tuple.
 

Method Detail

getNext

boolean getNext(Tuple<K,V> tuple)
                throws java.io.IOException
Get the next tuple.

Parameters:
tuple - Tuple into which values are copied.
Returns:
True if values have been copied in tuple, or false if there is no next tuple.
Throws:
java.io.IOException

getPrevious

boolean getPrevious(Tuple<K,V> tuple)
                    throws java.io.IOException
Get the previous tuple.

Parameters:
tuple - Tuple into which values are copied.
Returns:
True if values have been copied in tuple, or false if there is no previous tuple.
Throws:
java.io.IOException


Cees de Groot (C) 2000. All rights reserved http://jdbm.sourceforge.net