Class SetEvent<E>

  • Type Parameters:
    E - set element type

    public final class SetEvent<E>
    extends java.lang.Object
    Representation of a DistributedSet update notification.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  SetEvent.Type
      SetEvent type.
    • Constructor Summary

      Constructors 
      Constructor Description
      SetEvent​(java.lang.String name, SetEvent.Type type, E entry)
      Creates a new event object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      E entry()
      Returns the entry this event concerns.
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String name()
      Returns the set name.
      java.lang.String toString()  
      SetEvent.Type type()
      Returns the type of the event.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SetEvent

        public SetEvent​(java.lang.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 java.lang.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
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object