net.myrrix.common
Class SimpleRecommendedItem

java.lang.Object
  extended by net.myrrix.common.SimpleRecommendedItem
All Implemented Interfaces:
Comparable<SimpleRecommendedItem>, org.apache.mahout.cf.taste.recommender.RecommendedItem

public final class SimpleRecommendedItem
extends Object
implements org.apache.mahout.cf.taste.recommender.RecommendedItem, Comparable<SimpleRecommendedItem>

Simple and complete implementation of RecommendedItem which can be compared with itself.

Author:
Sean Owen

Constructor Summary
SimpleRecommendedItem(long itemID, float value)
           
 
Method Summary
 int compareTo(SimpleRecommendedItem other)
           
 boolean equals(Object o)
           
 long getItemID()
           
 float getValue()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleRecommendedItem

public SimpleRecommendedItem(long itemID,
                             float value)
Method Detail

getItemID

public long getItemID()
Specified by:
getItemID in interface org.apache.mahout.cf.taste.recommender.RecommendedItem

getValue

public float getValue()
Specified by:
getValue in interface org.apache.mahout.cf.taste.recommender.RecommendedItem

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(SimpleRecommendedItem other)
Specified by:
compareTo in interface Comparable<SimpleRecommendedItem>


Copyright © 2012. All Rights Reserved.