public interface ScoreMap<E>
extends java.lang.Iterable<E>
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(E obj) |
void |
dec(E obj) |
void |
dec(E obj,
int incrementScore) |
int |
delete(E obj) |
int |
get(E obj) |
void |
inc(E obj) |
void |
inc(E obj,
int incrementScore) |
void |
inc(ScoreMap<E> map) |
boolean |
isEmpty() |
java.util.Collection<E> |
keyList(boolean up) |
java.util.Iterator<E> |
keys(boolean up) |
java.util.List<E> |
lowerHalf()
divide the map into two halve parts using the count of the entries
|
void |
set(E obj,
int newScore) |
void |
shrinkToMaxSize(int maxsize)
shrink the cluster to a demanded size
|
void |
shrinkToMinScore(int minScore)
shrink the cluster in such a way that the smallest score is equal or greater than a given minScore
|
int |
size() |
boolean |
sizeSmaller(int size) |
java.lang.String |
toString() |
void clear()
void shrinkToMaxSize(int maxsize)
maxsize
- void shrinkToMinScore(int minScore)
minScore
- java.util.List<E> lowerHalf()
score
- int size()
boolean sizeSmaller(int size)
boolean isEmpty()
void set(E obj, int newScore)
int delete(E obj)
boolean containsKey(E obj)
int get(E obj)
java.lang.String toString()
toString
in class java.lang.Object
java.util.Iterator<E> keys(boolean up)
java.util.Collection<E> keyList(boolean up)
void inc(E obj)
void inc(E obj, int incrementScore)
void dec(E obj)
void dec(E obj, int incrementScore)