Creates an entry representing a mapping from the specified
key to the specified value.
key - the key represented by this entry
value - the value represented by this entry
public SimpleImmutableEntry(java.util.Map.Entry<? extends K,? extends V> entry)
Creates an entry representing the same mapping as the
entry - the entry to copy
public boolean equals(java.lang.Object o)
Compares the specified object with this entry for equality.
Returns true if the given object is also a map entry and
the two entries represent the same mapping. More formally, two
entries e1 and e2 represent the same mapping
Replaces the value corresponding to this entry with the specified
value (optional operation). This implementation simply throws
UnsupportedOperationException, as this class implements
an immutable map entry.
Returns a String representation of this map entry. This
implementation returns the string representation of this
entry's key followed by the equals character ("=")
followed by the string representation of this entry's value.