org.apache.commons.collections
Interface KeyValue
- All Known Implementing Classes:
- AbstractKeyValue, DefaultMapEntry, AbstractMapEntryDecorator, TiedMapEntry, AbstractHashedMap.HashEntry
- 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: 1.3 $ $Date: 2004/01/14 21:43:06 $
- Author:
- Stephen Colebourne
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-2004 Apache Software Foundation. All Rights Reserved.