org.apache.commons.collections
Interface KeyValue<K,V>

All Known Implementing Classes:
AbstractDualBidiMap.MapEntry, AbstractHashedMap.HashEntry, AbstractKeyValue, AbstractLinkedMap.LinkEntry, AbstractMapEntry, AbstractMapEntryDecorator, AbstractReferenceMap.ReferenceEntry, BeanMap.MyMapEntry, DefaultKeyValue, DefaultMapEntry, IdentityMap.IdentityEntry, SingletonMap, TiedMapEntry, UnmodifiableMapEntry

public interface KeyValue<K,V>

Defines a simple key value pair.

A Map Entry has considerable additional semantics over and above a simple key-value pair. This interface defines the minimum key value, with just the two get methods.

Since:
Commons Collections 3.0
Version:
$Revision: 1.1.1.1 $ $Date: 2005/05/23 04:33:07 $
Author:
Matt Hall, John Watkinson, Stephen Colebourne

Method Summary
 K getKey()
          Gets the key from the pair.
 V getValue()
          Gets the value from the pair.
 

Method Detail

getKey

K getKey()
Gets the key from the pair.

Returns:
the key

getValue

V getValue()
Gets the value from the pair.

Returns:
the value


Copyright © 2005-2005 Apache Software Foundation, Matt Hall, John Watkinson. All Rights Reserved.