Class MapListenerSupport.WrapperListener<K,​V>

    • Field Detail

      • f_listener

        protected final MapListener<K,​V> f_listener
        Wrapped MapListener.
    • Constructor Detail

      • WrapperListener

        public WrapperListener​(MapListener<K,​V> listener)
        Construct WrapperSynchronousListener.
        Parameters:
        listener - the wrapped MapListener
    • Method Detail

      • onMapEvent

        protected void onMapEvent​(MapEvent<K,​V> evt)
        Invoked when a map entry has been inserted, updated or deleted. To determine what action has occurred, use MapEvent.getId().
        Specified by:
        onMapEvent in class MultiplexingMapListener<K,​V>
        Parameters:
        evt - the MapEvent carrying the insert, update or delete information
      • getMapListener

        public MapListener<K,​V> getMapListener()
        Return the underlying MapListener.
        Returns:
        the underlying MapListener
      • hashCode

        public int hashCode()
        Determine a hash value for the WrapperListener object according to the general Object.hashCode() contract.
        Overrides:
        hashCode in class Object
        Returns:
        an integer hash value for this WrapperListener
      • equals

        public boolean equals​(Object o)
        Compare the WrapperListener with another object to determine equality.
        Overrides:
        equals in class MultiplexingMapListener<K,​V>
        Returns:
        true iff this WrapperListener and the passed object are equivalent listeners