org.glassfish.grizzly.utils
Class Pair<K,L>
java.lang.Object
org.glassfish.grizzly.utils.Pair<K,L>
- All Implemented Interfaces:
- PoolableObject
public class Pair<K,L>
- extends Object
- implements PoolableObject
Key : Value pair implementation.
- Author:
- Alexey Stashok
Constructor Summary |
Pair()
|
Pair(K first,
L second)
|
Pair
public Pair()
Pair
public Pair(K first,
L second)
getFirst
public K getFirst()
setFirst
public void setFirst(K first)
getSecond
public L getSecond()
setSecond
public void setSecond(L second)
prepare
public void prepare()
- Specified by:
prepare
in interface PoolableObject
release
public void release()
- Specified by:
release
in interface PoolableObject
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012 Oracle Corporation. All Rights Reserved.