org.trippi.nodegraph
Interface NodeResults

All Superinterfaces:
org.jrdf.util.ClosableIterator, java.util.Iterator

public interface NodeResults
extends org.jrdf.util.ClosableIterator

A ClosableIterator of Node objects, with several built-in convenience methods.

Author:
cwilper@cs.cornell.edu

Method Summary
 org.jrdf.graph.Node[] all()
          Get all nodes as an array and automatically close the iterator.
 int count()
          Get the number of items in the iterator and automatically close it.
 org.jrdf.graph.Node first()
          Get the first node and automatically close the iterator.
 
Methods inherited from interface org.jrdf.util.ClosableIterator
close
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

first

org.jrdf.graph.Node first()
Get the first node and automatically close the iterator.


all

org.jrdf.graph.Node[] all()
Get all nodes as an array and automatically close the iterator.


count

int count()
Get the number of items in the iterator and automatically close it.