T
- The type of the events being combined.public interface CompositeEvent<T> extends EventOf<T>
Modifier and Type | Method and Description |
---|---|
int |
getCount()
Get the number of events that have been combined.
|
EventOf<? extends T> |
getEvents(int index)
Get the event in the combination at the given index.
|
java.util.List<T> |
getOfs()
Get all the ofs from all the events in this composite and
it's children.
|
static <T> CompositeEvent<T> |
of(EventOf<T>... eventOfs)
Create a new instance from these events.
|
java.util.stream.Stream<EventOf<? extends T>> |
stream()
Return the combined events as a stream.
|
EventOf<? extends T> getEvents(int index)
index
- The index.int getCount()
java.util.List<T> getOfs()
java.util.stream.Stream<EventOf<? extends T>> stream()
static <T> CompositeEvent<T> of(EventOf<T>... eventOfs)