public abstract class KeyValueAggregator<K,V extends Number> extends Object
| Constructor and Description |
|---|
KeyValueAggregator(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(K key) |
void |
add(K key,
double value) |
void |
add(K key,
double coefficient,
Number factor) |
protected Map<K,Value<V>> |
asTransformedMap(com.google.common.base.Function<Vector<V>,Value<V>> function) |
void |
clear() |
protected Vector<V> |
get(K key) |
abstract ValueFactory<V> |
getValueFactory() |
public abstract ValueFactory<V> getValueFactory()
public void add(K key)
public void add(K key, double value)
public void clear()
Copyright © 2018. All rights reserved.