net.sf.collections15
Interface KeyValue<K,V>


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 Collections15 1.0
Version:
$Revision: 1.2 $ $Date: 2004/10/17 01:02:42 $
Author:
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 © 2001-2005 SourceForge.net. All Rights Reserved.