Interface InstantEvent<T>

Type Parameters:
T - The type of the event or trigger.
All Known Subinterfaces:
CompositeEvent<T>
All Known Implementing Classes:
BinaryEvaluation, CompositeEventList, StateEvaluation, UnaryEvaluation, WrapperOf

public interface InstantEvent<T>
An event from the event framework. Implementations are generally wrappers around other events or wrappers around objects that are triggers.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the underlying event or trigger.
    Get the UTC time of the event.
    static <T> InstantEvent<T>
    of(T item)
     
    static <T> InstantEvent<T>
    of(T item, Instant time)
     
  • Method Details

    • getOf

      T getOf()
      Get the underlying event or trigger. Will not be null.
      Returns:
      The event/trigger.
    • getTime

      Instant getTime()
      Get the UTC time of the event.
      Returns:
      The time.
    • of

      static <T> InstantEvent<T> of(T item, Instant time)
    • of

      static <T> InstantEvent<T> of(T item)