public static final class GenericItemSimilarity.ItemItemSimilarity extends Object implements Comparable<GenericItemSimilarity.ItemItemSimilarity>
| Constructor and Description |
|---|
ItemItemSimilarity(long itemID1,
long itemID2,
double value) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(GenericItemSimilarity.ItemItemSimilarity other)
Defines an ordering from highest similarity to lowest.
|
boolean |
equals(Object other) |
long |
getItemID1() |
long |
getItemID2() |
double |
getValue() |
int |
hashCode() |
String |
toString() |
public ItemItemSimilarity(long itemID1,
long itemID2,
double value)
itemID1 - first itemitemID2 - second itemvalue - similarity between the twoIllegalArgumentException - if value is NaN, less than -1.0 or greater than 1.0public long getItemID1()
public long getItemID2()
public double getValue()
public int compareTo(GenericItemSimilarity.ItemItemSimilarity other)
compareTo in interface Comparable<GenericItemSimilarity.ItemItemSimilarity>Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.