org.databene.commons.collection
Class MapEntry<K,V>

java.lang.Object
  extended by org.databene.commons.collection.MapEntry<K,V>
All Implemented Interfaces:
java.util.Map.Entry<K,V>

public class MapEntry<K,V>
extends java.lang.Object
implements java.util.Map.Entry<K,V>

Simple implementation of the Map.Entry interface.

Since:
0.3.0
Author:
Volker Bergmann

Constructor Summary
MapEntry(K key, V value)
           
 
Method Summary
 K getKey()
           
 V getValue()
           
 V setValue(V value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map.Entry
equals, hashCode
 

Constructor Detail

MapEntry

public MapEntry(K key,
                V value)
Method Detail

getKey

public K getKey()
Specified by:
getKey in interface java.util.Map.Entry<K,V>

getValue

public V getValue()
Specified by:
getValue in interface java.util.Map.Entry<K,V>

setValue

public V setValue(V value)
Specified by:
setValue in interface java.util.Map.Entry<K,V>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010. All Rights Reserved.