org.mymedialite.data
Class WeightedItem

java.lang.Object
  extended by org.mymedialite.data.WeightedItem
All Implemented Interfaces:
java.lang.Comparable<WeightedItem>

public final class WeightedItem
extends java.lang.Object
implements java.lang.Comparable<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

item_id

public int item_id
Item ID


weight

public java.lang.Double weight
Weight

Constructor Detail

WeightedItem

public WeightedItem()
Default constructor


WeightedItem

public WeightedItem(int item_id,
                    double weight)
Constructor

Parameters:
item_id - the item ID
weight - the weight
Method Detail

compareTo

public int compareTo(WeightedItem otherItem)
Specified by:
compareTo in interface java.lang.Comparable<WeightedItem>

equals

public boolean equals(WeightedItem otherItem)

getHashCode

public int getHashCode()