org.deegree.commons.utils
Class ComparablePair<T extends Comparable<T>,U extends Comparable<U>>

java.lang.Object
  extended by org.deegree.commons.utils.Pair<T,U>
      extended by 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 $

Field Summary
 
Fields inherited from class org.deegree.commons.utils.Pair
first, second
 
Constructor Summary
ComparablePair()
          Create a pair with null objects.
ComparablePair(T first, U second)
           
 
Method Summary
 int compareTo(Pair<T,U> o)
           
 
Methods inherited from class org.deegree.commons.utils.Pair
equals, getFirst, getSecond, hashCode, hasNull, isNull, setFirst, setSecond, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.

Method Detail

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.