K
- public class ObjectAccumulator<K> extends Object
Constructor and Description |
---|
ObjectAccumulator() |
ObjectAccumulator(int initialSize) |
Modifier and Type | Method and Description |
---|---|
double |
getCount(K o) |
double |
getCountSave(K o) |
K |
getMaxObject() |
Set<K> |
getObjects() |
boolean |
hasObject(K obj) |
double |
incBy(K o,
double inc)
Increases the count of object o by inc and returns the new count value
|
int |
numObjects() |
boolean |
removeObject(K obj) |
public ObjectAccumulator()
public ObjectAccumulator(int initialSize)
public double incBy(K o, double inc)
o
- inc
- public double getCount(K o)
public double getCountSave(K o)
public int numObjects()
public boolean hasObject(K obj)
public boolean removeObject(K obj)
public K getMaxObject()
Copyright © 2012–2017. All rights reserved.