All Known Implementing Classes:
AbstractHashedMap.HashEntry, AbstractKeyValue, AbstractMapEntry, AbstractReferenceMap.ReferenceEntry, 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$
Author:
Stephen Colebourne
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the key from the pair.
    Gets the value from the pair.
  • Method Details

    • getKey

      Object getKey()
      Gets the key from the pair.
      Returns:
      the key
    • getValue

      Object getValue()
      Gets the value from the pair.
      Returns:
      the value