org.jivesoftware.smack.util.collections
Interface KeyValue<K,V>

All Known Implementing Classes:
AbstractKeyValue, AbstractMapEntry, DefaultMapEntry

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 $ $Date: 2005/10/11 17:05:19 $
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