Class BidirectionalMap<K,​V>

  • Type Parameters:
    K - type of the keys to the map
    V - type of the values in the map
    All Implemented Interfaces:
    Map<K,​V>, IObservable, IObservableMap<K,​V>

    @Deprecated
    public class BidirectionalMap<K,​V>
    extends ObservableMap<K,​V>
    Deprecated.
    This class is deprecated; use BidiObservableMap instead.

    This class is thread safe. All state accessing methods must be invoked from the current realm. Methods for adding and removing listeners may be invoked from any thread.

    Since:
    1.0
    • Constructor Detail

      • BidirectionalMap

        public BidirectionalMap​(IObservableMap<K,​V> wrappedMap)
        Deprecated.
        Parameters:
        wrappedMap - backing store for the map data, used to implement all map operations
    • Method Detail

      • addListener

        protected void addListener​(Object listenerType,
                                   IObservablesListener listener)
        Parameters:
        listenerType - arbitrary object to identify a type of the listener
        listener - the listener to add; not null
      • removeListener

        protected void removeListener​(Object listenerType,
                                      IObservablesListener listener)
        Parameters:
        listenerType - arbitrary object to identify a type of the listener
        listener - the listener to remove; not null
      • hasListeners

        protected boolean hasListeners()
      • firstListenerAdded

        protected void firstListenerAdded()
      • lastListenerRemoved

        protected void lastListenerRemoved()
      • getRealm

        public Realm getRealm()
        Returns:
        Returns the realm.