org.apache.qpid.collections
Interface KeyValue

All Known Implementing Classes:
AbstractKeyValue, AbstractMapEntry, DefaultMapEntry

public interface KeyValue

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$ $Date$

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

Method Detail

getKey

Object getKey()
Gets the key from the pair.

Returns:
the key

getValue

Object getValue()
Gets the value from the pair.

Returns:
the value


Licensed to the Apache Software Foundation