public class KeyValueAggregator<K,V extends Number> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
KeyValueAggregator(ValueFactory<V> valueFactory,
int capacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(K key,
Number value) |
void |
add(K key,
Number coefficient,
Number factor) |
protected Map<K,Value<V>> |
asTransformedMap(com.google.common.base.Function<Vector<V>,Value<V>> function) |
void |
clear() |
protected Set<Map.Entry<K,Vector<V>>> |
entrySet() |
protected Vector<V> |
get(K key) |
ValueFactory<V> |
getValueFactory() |
void |
init(Collection<K> keys) |
protected Set<K> |
keySet() |
protected Collection<Vector<V>> |
values() |
protected KeyValueAggregator(ValueFactory<V> valueFactory, int capacity)
public void init(Collection<K> keys)
public void clear()
protected Collection<Vector<V>> values()
protected Map<K,Value<V>> asTransformedMap(com.google.common.base.Function<Vector<V>,Value<V>> function)
public ValueFactory<V> getValueFactory()
Copyright © 2019. All rights reserved.