T
- The type of the events being combined.public class CompositeEventList<T> extends java.lang.Object implements CompositeEvent<T>
CompositeEvent
created from some other events. The event of this event is youngest event of the
composites. The time of this event is that of the youngest event.Constructor and Description |
---|
CompositeEventList(EventOf<? extends T>... events) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
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.
|
T |
getOf()
Get the underlying event or trigger.
|
java.util.List<T> |
getOfs()
Get all the ofs from all the events in this composite and
it's children.
|
java.time.Instant |
getTime()
Get the UTC time of the event.
|
int |
hashCode() |
java.util.stream.Stream<EventOf<? extends T>> |
stream()
Return the combined events as a stream.
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
of
public T getOf()
EventOf
public EventOf<? extends T> getEvents(int index)
CompositeEvent
getEvents
in interface CompositeEvent<T>
index
- The index.public java.time.Instant getTime()
EventOf
public int getCount()
CompositeEvent
getCount
in interface CompositeEvent<T>
public java.util.List<T> getOfs()
CompositeEvent
getOfs
in interface CompositeEvent<T>
public java.util.stream.Stream<EventOf<? extends T>> stream()
CompositeEvent
stream
in interface CompositeEvent<T>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object