public final class WeightedObject<T> extends Object implements Comparable<WeightedObject<T>>
Modifier and Type | Method and Description |
---|---|
int |
compareTo(WeightedObject<T> arg0) |
boolean |
equals(Object obj) |
BigInteger |
getWeight() |
int |
hashCode() |
void |
increaseWeight(BigInteger delta) |
static <E> WeightedObject<E> |
newWO(E e,
BigInteger w) |
static <E> WeightedObject<E> |
newWO(E e,
int w) |
static <E> WeightedObject<E> |
newWO(E e,
long w) |
public final T thing
public BigInteger getWeight()
public void increaseWeight(BigInteger delta)
public int compareTo(WeightedObject<T> arg0)
compareTo
in interface Comparable<WeightedObject<T>>
public static <E> WeightedObject<E> newWO(E e, int w)
public static <E> WeightedObject<E> newWO(E e, long w)
public static <E> WeightedObject<E> newWO(E e, BigInteger w)
Copyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.