opennlp.model
Class ListEventStream
java.lang.Object
opennlp.model.ListEventStream
- All Implemented Interfaces:
- EventStream
public class ListEventStream
- extends Object
- implements EventStream
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. |
ListEventStream
public ListEventStream(List<Event> events)
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 © 2013 The Apache Software Foundation. All Rights Reserved.