org.omnaest.utils.events.event
Class EventResults<RESULT>
java.lang.Object
org.omnaest.utils.events.event.EventResults<RESULT>
- Type Parameters:
RESULT -
- All Implemented Interfaces:
- Iterable<RESULT>, ListIterable<RESULT>
public class EventResults<RESULT>
- extends Object
- implements ListIterable<RESULT>
Container for event results offering several methods to get meta information about the results.
- Author:
- Omnaest
- See Also:
ListIterable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resultList
protected List<RESULT> resultList
EventResults
public EventResults(List<RESULT> resultList)
- Parameters:
resultList -
size
public int size()
- Returns:
isEmpty
public boolean isEmpty()
- Returns:
contains
public boolean contains(Object o)
- Parameters:
o -
- Returns:
containsAll
public boolean containsAll(Collection<?> c)
- Parameters:
c -
- Returns:
get
public RESULT get(int index)
- Parameters:
index -
- Returns:
iterator
public ListIterator<RESULT> iterator()
- Description copied from interface:
ListIterable
- Returns a
ListIterator over a set of elements
- Specified by:
iterator in interface Iterable<RESULT>- Specified by:
iterator in interface ListIterable<RESULT>
- See Also:
ListIterable
getResultList
public List<RESULT> getResultList()
- Returns an undmodifyable
List of the event results
- Returns:
Copyright © 2013. All Rights Reserved.