public class SingleThreadedRanking extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SingleThreadedRanking.UpdateResult |
| Constructor and Description |
|---|
SingleThreadedRanking(int maxSize,
long threshold) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInto(SingleThreadedRanking other) |
void |
addInto(SingleThreadedRanking other,
boolean freshReplacesOldWithSameWeight) |
int |
getMaxSize() |
List<Position> |
getPositionsInDescendingOrder() |
long |
getThreshold() |
void |
reset() |
String |
toString() |
SingleThreadedRanking.UpdateResult |
update(long weight,
Object identity) |
public SingleThreadedRanking.UpdateResult update(long weight, Object identity)
public void addInto(SingleThreadedRanking other)
public void addInto(SingleThreadedRanking other, boolean freshReplacesOldWithSameWeight)
public void reset()
public long getThreshold()
public int getMaxSize()
Copyright © 2020. All rights reserved.