Interface KeyValue<K,V>


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.
Version:
$Id$
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the key corresponding to the pair.
    Returns the value corresponding to the pair.
  • Method Details

    • getKey

      K getKey()
      Returns the key corresponding to the pair.
      Returns:
      the key corresponding to the pair
    • getValue

      V getValue()
      Returns the value corresponding to the pair.
      Returns:
      the value corresponding to the pair