T
- The Type of the event.public class UnaryEvaluation<T> extends java.lang.Object implements CompositeEvent<T>
Constructor and Description |
---|
UnaryEvaluation(T result,
InstantEvent<T> operand) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
getCount()
Get the number of events that have been combined.
|
InstantEvent<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.
|
InstantEvent<T> |
getOperand() |
java.time.Instant |
getTime()
Get the UTC time of the event.
|
int |
hashCode() |
java.util.stream.Stream<InstantEvent<? extends T>> |
stream()
Return the combined events as a stream.
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
of
of
public UnaryEvaluation(T result, InstantEvent<T> operand)
public T getOf()
InstantEvent
getOf
in interface InstantEvent<T>
public InstantEvent<T> getOperand()
public InstantEvent<T> getEvents(int index)
CompositeEvent
getEvents
in interface CompositeEvent<T>
index
- The index.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<InstantEvent<? extends T>> stream()
CompositeEvent
stream
in interface CompositeEvent<T>
public java.time.Instant getTime()
InstantEvent
getTime
in interface InstantEvent<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