org.omnaest.utils.events.event
Class EventResults<RESULT>

java.lang.Object
  extended by 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

Field Summary
protected  List<RESULT> resultList
           
 
Constructor Summary
EventResults(List<RESULT> resultList)
           
 
Method Summary
 boolean contains(Object o)
           
 boolean containsAll(Collection<?> c)
           
 RESULT get(int index)
           
 List<RESULT> getResultList()
          Returns an undmodifyable List of the event results
 boolean isEmpty()
           
 ListIterator<RESULT> iterator()
          Returns a ListIterator over a set of elements
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resultList

protected List<RESULT> resultList
Constructor Detail

EventResults

public EventResults(List<RESULT> resultList)
Parameters:
resultList -
Method Detail

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.