uk.me.parabola.util
Class Sortable<K extends java.lang.Comparable,V>

java.lang.Object
  extended by uk.me.parabola.util.Sortable<K,V>
All Implemented Interfaces:
java.lang.Comparable<Sortable<K,V>>

public class Sortable<K extends java.lang.Comparable,V>
extends java.lang.Object
implements java.lang.Comparable<Sortable<K,V>>


Constructor Summary
Sortable(K key, V value)
           
 
Method Summary
 int compareTo(Sortable<K,V> o)
           
 K getKey()
           
 V getValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sortable

public Sortable(K key,
                V value)
Method Detail

getKey

public K getKey()

getValue

public V getValue()

compareTo

public int compareTo(Sortable<K,V> o)
Specified by:
compareTo in interface java.lang.Comparable<Sortable<K extends java.lang.Comparable,V>>