EventObjectBase

API

EventObjectBase.java
class EventObjectBase<T> {
  Optional<E> getInstanceWithSource(Class<E> eventType, T source)     (1)
  Optional<E> getInstanceWithSourceSupplier(Class<E> eventType, Supplier<T> eventSourceSupplier)     (2)
  T getSource()     (3)
  String toString()     (4)
}
1 getInstanceWithSource(Class, T)

Optionally returns a new event instance, based on whether the eventType has a public no-arg constructor.

2 getInstanceWithSourceSupplier(Class, Supplier)

Optionally returns a new event instance, based on whether the eventType has a public no-arg constructor.

3 getSource()

Returns the object on which the Event initially occurred.

4 toString()

Returns a String representation of this EventObject.

Members

getInstanceWithSource(Class, T)

Optionally returns a new event instance, based on whether the eventType has a public no-arg constructor.

Initializes the event’s source with given source .

getInstanceWithSourceSupplier(Class, Supplier)

Optionally returns a new event instance, based on whether the eventType has a public no-arg constructor.

Initializes the event’s source lazily, that is using given eventSourceSupplier .

getSource()

Returns the object on which the Event initially occurred.

toString()

Returns a String representation of this EventObject.