Package org.oddjob.events
Class BinaryEvaluation<T>
java.lang.Object
org.oddjob.events.BinaryEvaluation<T>
- Type Parameters:
T- The Type of the events.
- All Implemented Interfaces:
CompositeEvent<T>,InstantEvent<T>
The result of applying a Binary Operation to some events of some type that results
in a new event of the same type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetCount()Get the number of events that have been combined.getEvents(int index) Get the event in the combination at the given index.getLhs()getOf()Get the underlying event or trigger.getOfs()Get all the ofs from all the events in this composite and it's children.getRhs()getTime()Get the UTC time of the event.inthashCode()Stream<InstantEvent<? extends T>> stream()Return the combined events as a stream.toString()
-
Constructor Details
-
BinaryEvaluation
-
-
Method Details
-
getOf
Description copied from interface:InstantEventGet the underlying event or trigger. Will not be null.- Specified by:
getOfin interfaceInstantEvent<T>- Returns:
- The event/trigger.
-
getLhs
-
getRhs
-
getEvents
Description copied from interface:CompositeEventGet the event in the combination at the given index.- Specified by:
getEventsin interfaceCompositeEvent<T>- Parameters:
index- The index.- Returns:
- The event.
-
getCount
public int getCount()Description copied from interface:CompositeEventGet the number of events that have been combined.- Specified by:
getCountin interfaceCompositeEvent<T>- Returns:
- The number of events.
-
getOfs
Description copied from interface:CompositeEventGet all the ofs from all the events in this composite and it's children.- Specified by:
getOfsin interfaceCompositeEvent<T>- Returns:
- A list of all the ofs.
-
stream
Description copied from interface:CompositeEventReturn the combined events as a stream.- Specified by:
streamin interfaceCompositeEvent<T>- Returns:
-
getTime
Description copied from interface:InstantEventGet the UTC time of the event.- Specified by:
getTimein interfaceInstantEvent<T>- Returns:
- The time.
-
equals
-
hashCode
public int hashCode() -
toString
-