public interface

KeyValue

org.apache.commons.collections.KeyValue
Known Indirect Subclasses

Class Overview

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.

Summary

Public Methods
abstract Object getKey()
Gets the key from the pair.
abstract Object getValue()
Gets the value from the pair.

Public Methods

public abstract Object getKey ()

Gets the key from the pair.

Returns
  • the key

public abstract Object getValue ()

Gets the value from the pair.

Returns
  • the value