Class SetEvent<E>

  • Type Parameters:
    E - set element type

    public final class SetEvent<E>
    extends Object
    Representation of a DistributedSet update notification.
    • Constructor Detail

      • SetEvent

        public SetEvent​(String name,
                        SetEvent.Type type,
                        E entry)
        Creates a new event object.
        Parameters:
        name - set name
        type - type of the event
        entry - entry the event concerns
    • Method Detail

      • name

        public String name()
        Returns the set name.
        Returns:
        name of set
      • type

        public SetEvent.Type type()
        Returns the type of the event.
        Returns:
        type of the event
      • entry

        public E entry()
        Returns the entry this event concerns.
        Returns:
        the entry
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object