Top Description Fields Constructors Methods
org.glassfish.grizzly.utils

public Class Pair<K, L>

extends Object
implements PoolableObject
Class Inheritance
All Implemented Interfaces
org.glassfish.grizzly.utils.PoolableObject

Key : Value pair implementation.
Author
Alexey Stashok

Field Summary

Modifier and TypeField and Description
private K
private L

Constructor Summary

AccessConstructor and Description
public
Pair()

public
Pair(K first, L second)

Method Summary

Modifier and TypeMethod and Description
public K
public L
public void
public void
public void
setFirst(K first)

public void
setSecond(L second)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

firstback to summary
private K first
secondback to summary
private L second

Constructor Detail

Pairback to summary
public Pair()
Pairback to summary
public Pair(K first, L second)

Method Detail

getFirstback to summary
public K getFirst()
getSecondback to summary
public L getSecond()
prepareback to summary
public void prepare()

Implements org.glassfish.grizzly.utils.PoolableObject.prepare.

Annotations
@Override
releaseback to summary
public void release()

Implements org.glassfish.grizzly.utils.PoolableObject.release.

Annotations
@Override
setFirstback to summary
public void setFirst(K first)
setSecondback to summary
public void setSecond(L second)
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.

Annotations
@Override