public class ElemProbD<T> extends Object implements Comparable<ElemProbD<T>>
| Modifier and Type | Field and Description |
|---|---|
static Comparator<ElemProbD> |
DESCENDING_PROBABILTY |
| Constructor and Description |
|---|
ElemProbD(T element,
double probability) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ElemProbD other) |
T |
getElement() |
double |
getProbability() |
void |
setProbability(double probability) |
String |
toString() |
public static Comparator<ElemProbD> DESCENDING_PROBABILTY
public ElemProbD(T element, double probability)
Copyright © 2018. All rights reserved.