public abstract class AbstractProfiledItem<T> extends Object implements Comparable<AbstractProfiledItem<?>>
Modifier and Type | Field and Description |
---|---|
protected T |
item |
protected double |
probability |
Constructor and Description |
---|
AbstractProfiledItem(T item,
double probability) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(AbstractProfiledItem<?> o) |
boolean |
equals(Object obj) |
protected T |
getItem() |
double |
getProbability()
Returns the estimated probability of
getItem() . |
int |
hashCode() |
abstract String |
toString() |
protected final double probability
public AbstractProfiledItem(T item, double probability)
public double getProbability()
getItem()
.public int compareTo(AbstractProfiledItem<?> o)
compareTo
in interface Comparable<AbstractProfiledItem<?>>