Interface StrictMap<K,V>

All Superinterfaces:
com.google.gwt.user.client.rpc.IsSerializable, ReadOnlyStrictMap<K,V>, Serializable
All Known Implementing Classes:
StrictMapImpl

public interface StrictMap<K,V> extends ReadOnlyStrictMap<K,V>
Map backed by LinkedHashMap. "Strict" means that it does not allow null keys, and that all methods use generics unlike for example Map.containsKey(Object)
Since:
3.9.0
  • Method Details

    • put

      @Nullable V put(@NotNull K key, @Nullable V value)
    • remove

      @Nullable V remove(@NotNull K key)
    • removeAll

      void removeAll(@NotNull Iterable<K> keys)
    • removeValueIfSame

      @Nullable K removeValueIfSame(@NotNull V value)
      Removes the first mapping having the same value found by iterating over the ReadOnlyStrictMap.entrySet(), the value must be the same instance as the one contained in the map, so the equals() is NOT called by this method on the values. See ReadOnlyStrictMap.findKeyForValueIfSame(Object)
      Parameters:
      value - - value to be removed. It is removed only if it is the same instance.
      Returns:
      key associated with this value if it was found
    • putAll

      void putAll(@NotNull ReadOnlyStrictMap<? extends K,? extends V> m)
    • putAll

      void putAll(@NotNull Map<? extends K,? extends V> m)
    • clear

      void clear()