opennlp.model
Class ListEventStream

java.lang.Object
  extended by opennlp.model.ListEventStream
All Implemented Interfaces:
EventStream

public class ListEventStream
extends Object
implements EventStream


Constructor Summary
ListEventStream(List<Event> events)
           
 
Method Summary
 boolean hasNext()
          Test whether there are any Events remaining in this EventStream.
 Event next()
          Returns the next Event object held in this EventStream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListEventStream

public ListEventStream(List<Event> events)
Method Detail

next

public Event next()
Description copied from interface: EventStream
Returns the next Event object held in this EventStream.

Specified by:
next in interface EventStream
Returns:
the Event object which is next in this EventStream

hasNext

public boolean hasNext()
Description copied from interface: EventStream
Test whether there are any Events remaining in this EventStream.

Specified by:
hasNext in interface EventStream
Returns:
true if this EventStream has more Events


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.