org.modeshape.common.collection

## Class ImmutableMapEntry<K,V>

- java.lang.Object
- - org.modeshape.common.collection.ImmutableMapEntry<K,V>

- Type Parameters:
    `K` - the key type
    `V` - the value type
  All Implemented Interfaces:
    Map.Entry<K,V>

      @Immutable
      public class ImmutableMapEntry<K,V>
      extends Object
      implements Map.Entry<K,V>

  An immutable `Map.Entry` implementation.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ImmutableMapEntry(K key, V value)`
    `ImmutableMapEntry(Map.Entry<K,V> entry)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object obj)`
    `K` | `getKey()`
    `V` | `getValue()`
    `int` | `hashCode()`
    `V` | `setValue(V newValue)`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### ImmutableMapEntry

          public ImmutableMapEntry(K key,
                           V value)

    - #### ImmutableMapEntry

          public ImmutableMapEntry(Map.Entry<K,V> entry)

  - ### Method Detail

    - #### getKey

          public K getKey()

      Specified by:
        `getKey` in interface `Map.Entry<K,V>`

    - #### getValue

          public V getValue()

      Specified by:
        `getValue` in interface `Map.Entry<K,V>`

    - #### setValue

          public V setValue(V newValue)

      Specified by:
        `setValue` in interface `Map.Entry<K,V>`

    - #### hashCode

          public int hashCode()

      Specified by:
        `hashCode` in interface `Map.Entry<K,V>`
      Overrides:
        `hashCode` in class `Object`

    - #### equals

          public boolean equals(Object obj)

      Specified by:
        `equals` in interface `Map.Entry<K,V>`
      Overrides:
        `equals` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.