iitb.con.query
Interface ItemSet<T>


public interface ItemSet<T>

An ItemSet is a representation for a set of items returned by query.

ItemSet interface allows to iterate the items within it.


Method Summary
 boolean hasNext()
          Returns true if the ItemSet has more elements.
 T next()
          Returns the next item from ItemSet.
 void reset()
          Resets the ItemSet cursor to the first item.
 int size()
          Returns the size of the ItemSet (number of items in the set).
 

Method Detail

hasNext

boolean hasNext()
Returns true if the ItemSet has more elements.

Returns:
boolean - true if the ItemSet has more elements

next

T next()
Returns the next item from ItemSet.

Returns:
the next item in the ItemSet

reset

void reset()
Resets the ItemSet cursor to the first item.


size

int size()
Returns the size of the ItemSet (number of items in the set).

Returns:
number of items