org.apache.jetspeed.util
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.

Version:
$Id: KeyValue.java 761757 2009-04-03 18:46:58Z woonsan $

Method Summary
 K getKey()
          Returns the key corresponding to the pair.
 V getValue()
          Returns the value corresponding to the pair.
 

Method Detail

getKey

K getKey()
Returns the key corresponding to the pair.

Returns:
the key corresponding to the pair

getValue

V getValue()
Returns the value corresponding to the pair.

Returns:
the value corresponding to the pair


Copyright © 1999-2011 The Apache Software Foundation. All Rights Reserved.