Interface IObservableMap<K,​V>

  • Type Parameters:
    K - type of the keys in the map
    V - type of the values in the map
    All Superinterfaces:
    IObservable, java.util.Map<K,​V>
    All Known Implementing Classes:
    AbstractObservableMap, BidiObservableMap, BidirectionalMap, CompositeMap, ComputedObservableMap, DecoratingObservableMap, ObservableMap, WritableMap

    public interface IObservableMap<K,​V>
    extends java.util.Map<K,​V>, IObservable
    Observable Map.
    Since:
    1.1
    See Also:
    AbstractObservableMap, ObservableMap
    Restriction:
    This interface is not intended to be implemented by clients. Clients should instead subclass one of the classes that implement this interface.

    Authors of extensions to the databinding framework may extend this interface and indirectly implement it, but if doing so must also extend one of the framework classes. (Use an API problem filter to suppress the resulting warning.)

    Direct implementers of this interface outside of the framework will be broken in future releases when methods are added to this interface.

    • Method Detail

      • getKeyType

        java.lang.Object getKeyType()
        Returns the element type for the keyset of this observable map, or null if the keyset is untyped.
        Returns:
        the element type for the keyset of this observable map, or null if the keyset is untyped.
        Since:
        1.2
      • getValueType

        java.lang.Object getValueType()
        Returns the element type for the values of this observable map, or null if the values collection is untyped.
        Returns:
        the element type for the values of this observable map, or null if the values collection is untyped.
        Since:
        1.2
      • addMapChangeListener

        void addMapChangeListener​(IMapChangeListener<? super K,​? super V> listener)
        Parameters:
        listener - the change listener to add; not null
      • removeMapChangeListener

        void removeMapChangeListener​(IMapChangeListener<? super K,​? super V> listener)
        Parameters:
        listener - the change listener to remove; not null
      • size

        int size()
        Specified by:
        size in interface java.util.Map<K,​V>
        "TrackedGetter"
      • isEmpty

        boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Map<K,​V>
        "TrackedGetter"
      • containsKey

        boolean containsKey​(java.lang.Object key)
        Specified by:
        containsKey in interface java.util.Map<K,​V>
        "TrackedGetter"
      • containsValue

        boolean containsValue​(java.lang.Object value)
        Specified by:
        containsValue in interface java.util.Map<K,​V>
        "TrackedGetter"
      • get

        V get​(java.lang.Object key)
        Specified by:
        get in interface java.util.Map<K,​V>
        "TrackedGetter"
      • put

        V put​(K key,
              V value)
        Specified by:
        put in interface java.util.Map<K,​V>
      • remove

        V remove​(java.lang.Object key)
        Specified by:
        remove in interface java.util.Map<K,​V>
      • keySet

        java.util.Set<K> keySet()
        Specified by:
        keySet in interface java.util.Map<K,​V>
        "TrackedGetter"
      • values

        java.util.Collection<V> values()
        Specified by:
        values in interface java.util.Map<K,​V>
        "TrackedGetter"
      • entrySet

        java.util.Set<java.util.Map.Entry<K,​V>> entrySet()
        Specified by:
        entrySet in interface java.util.Map<K,​V>
        "TrackedGetter"
      • equals

        boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface java.util.Map<K,​V>
        Overrides:
        equals in class java.lang.Object
        "TrackedGetter"
      • hashCode

        int hashCode()
        Specified by:
        hashCode in interface java.util.Map<K,​V>
        Overrides:
        hashCode in class java.lang.Object
        "TrackedGetter"