org.deegree.commons.utils
Class Pair<T,U>
java.lang.Object
org.deegree.commons.utils.Pair<T,U>
- Type Parameters:
T
- the first Object of the pairU
- the second Object of the pair
- Direct Known Subclasses:
- DoublePair, JTSGeometryPair, StringPair
public class Pair<T,U>
- extends Object
Pair
is a convenience class, which pairs two objects. For a pair of String
s see
StringPair
.
- Version:
- $Revision: 22810 $, $Date: 2010-03-03 17:27:13 +0100 (Mi, 03 Mrz 2010) $
- Author:
- Rutger Bezema, last edited by: $Author: rbezema $
Field Summary |
T |
first
first value of the pair. |
U |
second
second value of the pair. |
Constructor Summary |
Pair()
Create a pair with null objects. |
Pair(T first,
U second)
|
first
public T first
- first value of the pair.
second
public U second
- second value of the pair.
Pair
public Pair(T first,
U second)
- Parameters:
first
- value of the pair.second
- value of the pair.
Pair
public Pair()
- Create a pair with null objects.
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
hasNull
public boolean hasNull()
- Returns:
- true if either the first or the second value is
null
isNull
public boolean isNull()
- Returns:
- true if the first and the second value are
null
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>