org.deegree.commons.utils
Class ComparablePair<T extends Comparable<T>,U extends Comparable<U>>
java.lang.Object
org.deegree.commons.utils.Pair<T,U>
org.deegree.commons.utils.ComparablePair<T,U>
- Type Parameters:
T
- U
-
- All Implemented Interfaces:
- Comparable<Pair<T,U>>
public class ComparablePair<T extends Comparable<T>,U extends Comparable<U>>
- extends Pair<T,U>
- implements Comparable<Pair<T,U>>
ComparablePair
- Version:
- $Revision: 24729 $, $Date: 2010-06-07 19:21:43 +0200 (Mon, 07 Jun 2010) $
- Author:
- Andreas Schmitz, last edited by: $Author: aschmitz $
ComparablePair
public ComparablePair(T first,
U second)
- Parameters:
first
- value of the pair.second
- value of the pair.
ComparablePair
public ComparablePair()
- Create a pair with null objects.
compareTo
public int compareTo(Pair<T,U> o)
- Specified by:
compareTo
in interface Comparable<Pair<T extends Comparable<T>,U extends Comparable<U>>>
Copyright © 2011. All Rights Reserved.