Class AbstractCyPayloadEvent<T,​P>

    • Constructor Detail

      • AbstractCyPayloadEvent

        public AbstractCyPayloadEvent​(T source,
                                      Class<?> listenerClass,
                                      Collection<P> payload)
        Constructor.
        Parameters:
        source - The event source object.
        listenerClass - The listener class for this event.
        payload - A collection of payload objects. May be empty, but not null!
    • Method Detail

      • getPayloadCollection

        public Collection<P> getPayloadCollection()
        Returns an unmodifiable collection of payload objects.
        Specified by:
        getPayloadCollection in interface CyPayloadEvent<T,​P>
        Returns:
        an unmodifiable collection of payload objects.