java.lang.Object
swim.structure.collections.ValueMap<K,V>
swim.structure.collections.ValueIterableMap<K,V>
swim.structure.collections.ValueOrderedMap<K,V>
swim.structure.collections.ValueReducedMap<K,V,U>
- All Implemented Interfaces:
Iterable<Map.Entry<K,,V>> Map<K,,V> SortedMap<K,,V> IterableMap<K,,V> OrderedMap<K,,V> ReducedMap<K,V, U>
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninner()<K2> ValueReducedMap<K2,V, U> <K2> ValueReducedMap<K2,V, U> reduced(U identity, CombinerFunction<? super V, U> accumulator, CombinerFunction<U, U> combiner) Returns the reduction of thisReducedMap, combining all contained elements with the givenaccumulatorandcombinerfunctions, recomputing only what has changed since the last invocation ofreduced.<U2> ValueReducedMap<K,V, U2> reducedClass(Class<U2> reducedClass) <U2> ValueReducedMap<K,V, U2> reducedForm(Form<U2> reducedForm) <V2> ValueReducedMap<K,V2, U> valueClass(Class<V2> valueClass) <V2> ValueReducedMap<K,V2, U> Methods inherited from class swim.structure.collections.ValueOrderedMap
comparator, firstEntry, firstKey, firstValue, getEntry, getIndex, headMap, indexOf, iterator, lastEntry, lastKey, lastValue, nextEntry, nextKey, nextValue, previousEntry, previousKey, previousValue, subMap, tailMapMethods inherited from class swim.structure.collections.ValueIterableMap
keyIterator, valueIteratorMethods inherited from class swim.structure.collections.ValueMap
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keyForm, keySet, put, putAll, remove, size, toString, valueForm, valuesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllMethods inherited from interface swim.util.OrderedMap
clear, comparator, containsKey, containsValue, entrySet, firstEntry, firstKey, firstValue, get, getEntry, getIndex, headMap, indexOf, isEmpty, iterator, keyIterator, keySet, lastEntry, lastKey, lastValue, nextEntry, nextKey, nextValue, previousEntry, previousKey, previousValue, put, putAll, remove, size, subMap, tailMap, valueIterator, values
-
Field Details
-
reducedForm
-
-
Constructor Details
-
ValueReducedMap
-
-
Method Details
-
inner
- Overrides:
innerin classValueOrderedMap<K,V>
-
keyForm
- Overrides:
keyFormin classValueOrderedMap<K,V>
-
keyClass
- Overrides:
keyClassin classValueOrderedMap<K,V>
-
valueForm
- Overrides:
valueFormin classValueOrderedMap<K,V>
-
valueClass
- Overrides:
valueClassin classValueOrderedMap<K,V>
-
reducedForm
-
reducedForm
-
reducedClass
-
reduced
public U reduced(U identity, CombinerFunction<? super V, U> accumulator, CombinerFunction<U, U> combiner) Description copied from interface:ReducedMapReturns the reduction of thisReducedMap, combining all contained elements with the givenaccumulatorandcombinerfunctions, recomputing only what has changed since the last invocation ofreduced. Stores partial computations to accelerate repeated reduction of continuously mutating datasets.- Specified by:
reducedin interfaceReducedMap<K,V, U>
-