T
- type of the item.C
- type of the quantity associated with the item.public class ComparableItem<T,C extends Comparable<C>> extends Object implements Comparable<ComparableItem<T,C>>
Constructor and Description |
---|
ComparableItem(T item,
C quantity)
Construct a new comparable item.
|
public T getItem()
public C getQuantity()
public int compareTo(ComparableItem<T,C> o)
compareTo
in interface Comparable<ComparableItem<T,C extends Comparable<C>>>
Copyright © 2013-2015 Graph Aware Limited. All Rights Reserved.