Interface Map<K,​V>

    • Method Detail

      • put

        @NotNull
        @NotNull Map<K,​V> put​(@NotNull
                                    K key,
                                    V value)
        Returns a map with the value specified associated to the key specified.

        If value already exists for the key, it will be replaced.

      • get

        @Nullable
        V get​(@NotNull
              K key)
        Returns the value associated with the key or null if the no value exists with the key specified.
      • remove

        @NotNull
        @NotNull Map<K,​V> remove​(@NotNull
                                       K key)
        Returns a map with the value associated with the key removed if it exists.
      • keys

        @NotNull
        @NotNull Iterable<K> keys()
        Returns the keys for this map.
      • values

        @NotNull
        @NotNull Iterable<V> values()
        Returns the values for this map.
      • containsKey

        boolean containsKey​(@NotNull
                            K key)
        Returns true if this map contains the specified key.
      • asMap

        @NotNull
        java.util.Map<K,​V> asMap()
        Returns an immutable view of this map as an instance of Map.