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 java.lang.Object
- implements PoolableObject
Key : Value pair implementation.
- Author:
- Alexey Stashok
|
Constructor Summary |
Pair()
|
Pair(K first,
L second)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2012 Oracle Corporation. All Rights Reserved.