Kieker 1.6

kieker.common.util
Class ImmutableEntry<K,V>

java.lang.Object
  extended by kieker.common.util.ImmutableEntry<K,V>
Type Parameters:
K -
V -
All Implemented Interfaces:
Map.Entry<K,V>

public class ImmutableEntry<K,V>
extends Object
implements Map.Entry<K,V>

Java's SimpleImmutableEntry, as in implementation of Map.Entry, is available for Java 1.6 or higher. Hence, we provide our own implementation here.

Author:
Andre van Hoorn

Constructor Summary
ImmutableEntry(K key, V value)
           
 
Method Summary
 boolean equals(Object obj)
           
 K getKey()
           
 V getValue()
           
 int hashCode()
           
 V setValue(V arg0)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImmutableEntry

public ImmutableEntry(K key,
                      V value)
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 arg0)
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

Kieker 1.6

Copyright 2012 Kieker Project, http://kieker-monitoring.net