public class Ranking
extends java.lang.Object
Constructor and Description |
---|
Ranking(int capacity)
Konstruktor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int id,
double value)
Fuegt eine neue Bewertung hinzu.
|
int[] |
flushIds()
Liefert die finalen IDs des aktuellen Rankings.
|
boolean |
isEmpty() |
public Ranking(int capacity)
capacity
- int Aufnahmekapazitaet.public boolean isEmpty()
public void add(int id, double value)
id
- intvalue
- double Bewertung.public int[] flushIds()