Class TestImmutableEntry.MyEntry<K,​V>

  • Type Parameters:
    K - type of the key
    V - type of the value
    All Implemented Interfaces:
    Map.Entry<K,​V>
    Enclosing class:
    TestImmutableEntry

    public static class TestImmutableEntry.MyEntry<K,​V>
    extends Object
    implements Map.Entry<K,​V>
    Simple implementation of Entry interface.
    • Constructor Detail

      • MyEntry

        MyEntry​(K key,
                V value)
        Construct a new MyEntry object.
        Parameters:
        key - K; key of the entry
        value - V; value of the entry