T - the type of objectpublic class Weighted<T> extends Object implements Comparable<Weighted<T>>
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Weighted<T> other)
High weights first, use val.hashCode to break ties
|
boolean |
equals(Object other) |
int |
hashCode() |
String |
toString() |
static <T> Weighted<T> |
weighted(T value,
double weight)
Convenience static constructor
|
public final T val
public final double weight
public Weighted(T val, double weight)
Copyright © 2017 Grakn Labs Ltd. All rights reserved.