Class AbstractMap.SimpleImmutableEntry<K,V>

java.lang.Object
java.util.AbstractMap.SimpleImmutableEntry<K,V>
Type Parameters:
K - the type of key
V - the type of value
All Implemented Interfaces:
Map.Entry<K,V>
Enclosing class:
AbstractMap<K,V>

public static class AbstractMap.SimpleImmutableEntry<K,V> extends Object implements Map.Entry<K,V>
An immutable key-value mapping.
Since:
1.6
  • Constructor Details

    • SimpleImmutableEntry

      public SimpleImmutableEntry(K theKey, V theValue)
      Constructs a new instance by key and value.
      Parameters:
      theKey - the key
      theValue - the value
    • SimpleImmutableEntry

      public SimpleImmutableEntry(Map.Entry<? extends K, ? extends V> entry)
      Constructs a new instance by an entry
      Parameters:
      entry - the entry
  • Method Details