|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jminor.common.model.Item<T>
T
- the type of the actual itempublic class Item<T>
A class encapsulating an item and caption.
Constructor Summary | |
---|---|
Item(T item,
String caption)
Instantiates a new Item. |
Method Summary | |
---|---|
int |
compareTo(Item<T> o)
Compares this item with the given item according to the caption. |
boolean |
equals(Object obj)
|
String |
getCaption()
|
T |
getItem()
|
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Item(T item, String caption)
item
- the itemcaption
- the captionMethod Detail |
---|
public final String getCaption()
public final T getItem()
public final String toString()
toString
in class Object
public final boolean equals(Object obj)
equals
in class Object
public final int hashCode()
hashCode
in class Object
public final int compareTo(Item<T> o)
compareTo
in interface Comparable<Item<T>>
o
- the item to compare with
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |