org.apache.commons.collections

Interface KeyValue

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: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $

Author: Stephen Colebourne

Method Summary
ObjectgetKey()
Gets the key from the pair.
ObjectgetValue()
Gets the value from the pair.

Method Detail

getKey

public Object getKey()
Gets the key from the pair.

Returns: the key

getValue

public Object getValue()
Gets the value from the pair.

Returns: the value

Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.