|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mymedialite.data.WeightedItem
public final class WeightedItem
Weighted items class.
Field Summary | |
---|---|
int |
item_id
Item ID |
java.lang.Double |
weight
Weight |
Constructor Summary | |
---|---|
WeightedItem()
Default constructor |
|
WeightedItem(int item_id,
double weight)
Constructor |
Method Summary | |
---|---|
int |
compareTo(WeightedItem otherItem)
|
boolean |
equals(WeightedItem otherItem)
|
int |
getHashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int item_id
public java.lang.Double weight
Constructor Detail |
---|
public WeightedItem()
public WeightedItem(int item_id, double weight)
item_id
- the item IDweight
- the weightMethod Detail |
---|
public int compareTo(WeightedItem otherItem)
compareTo
in interface java.lang.Comparable<WeightedItem>
public boolean equals(WeightedItem otherItem)
public int getHashCode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |