Top Description Fields Constructors Methods
org.jruby.util

public Class KeyValuePair<K, V>

extends Object
Class Inheritance
Type Parameters
<K>
key
<V>
value

Simple key-value pair object.

Field Summary

Modifier and TypeField and Description
private final K
private final V

Constructor Summary

AccessConstructor and Description
public
KeyValuePair(K key, V value)

Method Summary

Modifier and TypeMethod and Description
public K
public V
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

keyback to summary
private final K key
valueback to summary
private final V value

Constructor Detail

KeyValuePairback to summary
public KeyValuePair(K key, V value)

Method Detail

getKeyback to summary
public K getKey()
getValueback to summary
public V getValue()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override