MultiCounter<K,V> |
BaseMultiCounter.adjustValues(DoubleUnaryOperator function) |
|
MultiCounter<K,V> |
MultiCounter.adjustValues(DoubleUnaryOperator function) |
Constructs a new multi-counter made up of counts that are adjusted using the supplied function.
|
MultiCounter<K,V> |
BaseMultiCounter.adjustValuesSelf(DoubleUnaryOperator function) |
|
MultiCounter<K,V> |
MultiCounter.adjustValuesSelf(DoubleUnaryOperator function) |
Adjust the values in-place using the supplied function
|
default MultiCounter<K,V> |
MultiCounter.decrement(K item1,
V item2) |
Decrements the count of the pair (item1, item2) by one.
|
default MultiCounter<K,V> |
MultiCounter.decrement(K item1,
V item2,
double amount) |
Decrements the count of the pair (item1, item2) by the given amount.
|
default MultiCounter<K,V> |
MultiCounter.decrementAll(Iterable<? extends Map.Entry<K,V>> iterable) |
Decrements the counts of the entries in the iterable in this counter by one.
|
default MultiCounter<K,V> |
MultiCounter.decrementAll(K item,
Iterable<? extends V> iterable) |
Decrements the count of the item and each second key in the iterable by one in this counter.
|
default MultiCounter<K,V> |
MultiCounter.divideByKeySum() |
Divides the counter of each first key by its sum.
|
default MultiCounter<K,V> |
MultiCounter.divideBySum() |
Divides the values in the counter by the sum and sets the sum to 1.0
|
MultiCounter<K,V> |
BaseMultiCounter.filterByFirstKey(Predicate<K> predicate) |
|
MultiCounter<K,V> |
MultiCounter.filterByFirstKey(Predicate<K> predicate) |
Creates a new multi-counter containing only those entries whose first key evaluate true for the given predicate
|
MultiCounter<K,V> |
BaseMultiCounter.filterBySecondKey(Predicate<V> predicate) |
|
MultiCounter<K,V> |
MultiCounter.filterBySecondKey(Predicate<V> predicate) |
Creates a new multi-counter containing only those entries whose second key evaluate true for the given predicate
|
MultiCounter<K,V> |
BaseMultiCounter.filterByValue(DoublePredicate predicate) |
|
MultiCounter<K,V> |
MultiCounter.filterByValue(DoublePredicate predicate) |
Creates a new multi-counter containing only those entries whose value evaluate true for the given predicate
|
default MultiCounter<K,V> |
MultiCounter.increment(K item1,
V item2) |
Increments the count of the pair (item1, item2) by one.
|
default MultiCounter<K,V> |
MultiCounter.increment(K item1,
V item2,
double amount) |
Increments the count of the pair (item1, item2) by the given amount.
|
default MultiCounter<K,V> |
MultiCounter.incrementAll(Iterable<? extends Map.Entry<K,V>> iterable) |
Increments the counts of the entries in the iterable in this counter by one.
|
default MultiCounter<K,V> |
MultiCounter.incrementAll(K item,
Iterable<? extends V> iterable) |
Increments the count of the item and each second key in the iterable by one in this counter.
|
MultiCounter<K,V> |
BaseMultiCounter.merge(MultiCounter<K,V> other) |
|
MultiCounter<K,V> |
MultiCounter.merge(MultiCounter<K,V> other) |
Merges the counts in one counter with this one.
|
static <K1,K2> MultiCounter<K1,K2> |
MultiCounters.newConcurrentMultiCounter(MultiCounter<K1,K2> multiCounter) |
Creates a new ConcurrentHashMapMultiCounter using the given multi counter.
|
static <K1,K2> MultiCounter<K1,K2> |
MultiCounters.newConcurrentMultiCounter(Iterable<? extends Map.Entry<? extends K1,? extends K2>> entries) |
Creates a new ConcurrentHashMapMultiCounter using the given map entries.
|
static <K1,K2> MultiCounter<K1,K2> |
MultiCounters.newConcurrentMultiCounter(Map.Entry<? extends K1,? extends K2>... entries) |
Creates a new ConcurrentHashMapMultiCounter using the given map entries.
|
static <K1,K2> MultiCounter<K1,K2> |
MultiCounters.newConcurrentMultiCounter(Map<? extends Map.Entry<? extends K1,? extends K2>,? extends Number> map) |
Creates a new ConcurrentHashMapMultiCounter using the given map.
|
protected abstract MultiCounter<K,V> |
BaseMultiCounter.newInstance() |
New instance.
|
protected MultiCounter<K,V> |
ConcurrentHashMapMultiCounter.newInstance() |
|
protected MultiCounter<K,V> |
HashMapMultiCounter.newInstance() |
|
static <K1,K2> MultiCounter<K1,K2> |
MultiCounters.newMultiCounter(MultiCounter<? extends K1,? extends K2> counter) |
Creates a copy of the specified multi-counter
|
static <K1,K2> MultiCounter<K1,K2> |
MultiCounters.newMultiCounter(Iterable<? extends Map.Entry<? extends K1,? extends K2>> entries) |
Creates a new MultiCounter using the given map entries.
|
static <K1,K2> MultiCounter<K1,K2> |
MultiCounters.newMultiCounter(Map.Entry<? extends K1,? extends K2>... entries) |
Creates a new MultiCounter using the given map entries.
|
static <K1,K2> MultiCounter<K1,K2> |
MultiCounters.newMultiCounter(Map<? extends Map.Entry<? extends K1,? extends K2>,? extends Number> map) |
Creates a new MultiCounter using the given map.
|
static <K1,K2> MultiCounter<K1,K2> |
MultiCounters.readCsv(Resource resource,
Class<K1> key1Class,
Class<K2> key2Class) |
Reads a multi-counter from a CSV file.
|
default MultiCounter<K,V> |
MultiCounter.removeAll(Iterable<K> items) |
Removes all the given items from the counter
|
MultiCounter<K,V> |
BaseMultiCounter.set(K item,
Counter<V> counter) |
|
MultiCounter<K,V> |
BaseMultiCounter.set(K item1,
V item2,
double amount) |
|
MultiCounter<K,V> |
MultiCounter.set(K item,
Counter<V> counter) |
Sets the secondary keys and counts associated with a first level kek
|
MultiCounter<K,V> |
MultiCounter.set(K item1,
V item2,
double amount) |
Sets the value of the given key pair to the given amount
|
default MultiCounter<V,K> |
MultiCounter.transpose() |
Transpose multi counter.
|