| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static <K, V> MutableOrderedMap | |
| public <KK, VV> MutableOrderedMap | aggregateBy(Function<? super V, ? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV, ? super V, ? extends VV> nonMutatingAggregator)
Overrides default org. Implements org. Applies an aggregate function over the iterable grouping results into a map based on the specific groupBy function. |
| public <K1, V1, V2> MutableOrderedMap | aggregateBy(Function<? super K, ? extends K1> keyFunction, Function<? super V, ? extends V1> valueFunction, Function0<? extends V2> zeroValueFactory, Function2<? super V2, ? super V1, ? extends V2> nonMutatingAggregator)
Overrides default org. Implements org. Applies an aggregate function over the map grouping results into a map based on the specific key and value groupBy functions. |
| public <KK, VV> MutableOrderedMap | aggregateInPlaceBy(Function<? super V, ? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Procedure2<? super VV, ? super V> mutatingAggregator)
Overrides default org. Implements org. Applies an aggregate procedure over the iterable grouping results into a Map based on the specific groupBy function. |
| public MutableOrderedMap | asSynchronized()
Implements org. Returns a synchronized wrapper backed by this map. |
| public MutableOrderedMap | asUnmodifiable()
Implements org. Returns an unmodifiable view of this map. |
| public void | clear()
Implements java. Removes all of the mappings from this map (optional operation). |
| public MutableOrderedMap | |
| public <R> MutableList | collect(Function<? super V, ? extends R> function)
Implements org. Returns a new collection with the results of applying the specified function on each element of the source collection. |
| public <K2, V2> MutableOrderedMap | collect(Function2<? super K, ? super V, Pair<K2, V2>> function)
Implements org. For each key and value of the map the function is evaluated. |
| public MutableBooleanList | collectBoolean(BooleanFunction<? super V> booleanFunction)
Implements org. Returns a new primitive |
| public MutableByteList | collectByte(ByteFunction<? super V> byteFunction)
Implements org. Returns a new primitive |
| public MutableCharList | collectChar(CharFunction<? super V> charFunction)
Implements org. Returns a new primitive |
| public MutableDoubleList | collectDouble(DoubleFunction<? super V> doubleFunction)
Implements org. Returns a new primitive |
| public MutableFloatList | collectFloat(FloatFunction<? super V> floatFunction)
Implements org. Returns a new primitive |
| public <R> MutableList | collectIf(Predicate<? super V> predicate, Function<? super V, ? extends R> function)
Implements org. Returns a new collection with the results of applying the specified function on each element of the source collection, but only for those elements which return true upon evaluation of the predicate. |
| public MutableIntList | collectInt(IntFunction<? super V> intFunction)
Implements org. Returns a new primitive |
| public <R> MutableOrderedMap | collectKeysUnique(Function2<? super K, ? super V, ? extends R> function)
Implements org. For each key and value of the map the function is evaluated. |
| public MutableLongList | collectLong(LongFunction<? super V> longFunction)
Implements org. Returns a new primitive |
| public MutableShortList | collectShort(ShortFunction<? super V> shortFunction)
Implements org. Returns a new primitive |
| public <R> MutableOrderedMap | collectValues(Function2<? super K, ? super V, ? extends R> function)
Implements org. For each key and value of the map the function is evaluated. |
| public <P, VV> MutableList | collectWith(Function2<? super V, ? super P, ? extends VV> function, P parameter)
Implements org. Same as |
| public boolean | containsKey(Object key)
Implements org. Returns |
| public boolean | containsValue(Object value)
Implements org. Returns |
| public <S> boolean | corresponds(OrderedIterable<S> other, Predicate2<? super V, ? super S> predicate)
Implements org. Returns true if both OrderedIterables have the same length
and |
| public <V1> MutableBag | countBy(Function<? super V, ? extends V1> function)
Overrides default org. This method will count the number of occurrences of each value calculated by applying the function to each element of the collection. |
| public <V1> MutableBag | countByEach(Function<? super V, ? extends Iterable<V1>> function)
Overrides org. Overrides default org. This method will count the number of occurrences of each value calculated by applying the function to each element of the collection. |
| public <V1, P> MutableBag | countByWith(Function2<? super V, ? super P, ? extends V1> function, P parameter)
Overrides default org. This method will count the number of occurrences of each value calculated by applying the function to each element of the collection with the specified parameter as the second argument. |
| public Pair | detect(Predicate2<? super K, ? super V> predicate)
Implements org. Return the first key and value of the map for which the predicate evaluates to true when they are given as arguments. |
| public int | detectIndex(Predicate<? super V> predicate)
Implements org. Returns the index of the first element of the |
| public int | detectLastIndex(Predicate<? super V> predicate)
Implements org. Returns the index of the last element of the |
| public Optional | detectOptional(Predicate2<? super K, ? super V> predicate)
Implements org. Return the first key and value of the map as an Optional for which the predicate evaluates to true when they are given as arguments. |
| public MutableList | distinct()
Implements org. Returns a new |
| public MutableOrderedMap | drop(int count)
Implements org. Returns an iterable after skipping the first |
| public MutableOrderedMap | dropWhile(Predicate<? super V> predicate)
Implements org. Returns the final elements that do not satisfy the Predicate. |
| public MutableSet | entrySet()
Implements java. Returns a |
| public boolean | equals(Object o)
Overrides java. Implements org. Follows the same general contract as |
| public <R> MutableList | flatCollect(Function<? super V, ? extends Iterable<R>> function)
Implements org.
|
| public MutableListMultimap | flip()
Implements org. Given a map from Domain |
| public MutableOrderedMap | flipUniqueValues()
Implements org. Return the MapIterable that is obtained by flipping the direction of this map and making the associations from value to key. |
| public void | forEach(int startIndex, int endIndex, Procedure<? super V> procedure)
Implements org. Iterates over the section of the iterable covered by the specified inclusive indexes. |
| public void | forEachKeyValue(Procedure2<? super K, ? super V> procedure)
Implements org. Calls the |
| public void | forEachWithIndex(int fromIndex, int toIndex, ObjectIntProcedure<? super V> objectIntProcedure)
Implements org. Iterates over the section of the iterable covered by the specified inclusive indexes. |
| public V | get(Object key)
Implements org. Returns the value to which the specified key is mapped,
or |
| public V | getIfAbsentPut(K key, Function0<? extends V> function)
Implements org. Get and return the value in the Map at the specified key. |
| public V | getIfAbsentPut(K key, V value)
Implements org. Get and return the value in the Map at the specified key. |
| public <P> V | getIfAbsentPutWith(K key, Function<? super P, ? extends V> function, P parameter)
Implements org. Get and return the value in the Map at the specified key. |
| public V | getIfAbsentPutWithKey(K key, Function<? super K, ? extends V> function)
Implements org. Get and return the value in the Map at the specified key. |
| public <VV> MutableListMultimap | groupBy(Function<? super V, ? extends VV> function)
Implements org. For each element of the iterable, the function is evaluated and the results of these evaluations are collected into a new multimap, where the transformed value is the key and the original values are added to the same (or similar) species of collection as the source iterable. |
| public <VV> MutableListMultimap | groupByEach(Function<? super V, ? extends Iterable<VV>> function)
Implements org. Similar to |
| public <VV> MutableOrderedMap | groupByUniqueKey(Function<? super V, ? extends VV> function)
Implements org. For each element of the iterable, the function is evaluated, and the results of these evaluations are collected into a new map, where the transformed value is the key. |
| public int | hashCode()
Overrides java. Implements org. Follows the same general contract as |
| public boolean | isEmpty()
Overrides org. Implements org. Returns true if this iterable has zero items. |
| public Iterator | |
| public MutableSet | |
| public RichIterable | keysView()
Implements org. Returns an unmodifiable lazy iterable wrapped around the keySet for the map. |
| public RichIterable | keyValuesView()
Implements org. Returns an unmodifiable lazy iterable of key/value pairs wrapped around the entrySet for the map. |
| public V | merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction)
Overrides default java. If the specified key is not already associated with a value or is associated with null, associates it with the given non-null value (optional operation). |
| public MutableOrderedMap | newEmpty()
Implements org. Creates a new instance of the same type, using the default capacity and growth parameters. |
| public PartitionMutableList | partition(Predicate<? super V> predicate)
Implements org. Filters a collection into a PartitionedIterable based on the evaluation of the predicate. |
| public PartitionMutableList | partitionWhile(Predicate<? super V> predicate)
Implements org. Returns a Partition of the initial elements that satisfy the Predicate and the remaining elements. |
| public <P> PartitionMutableList | partitionWith(Predicate2<? super V, ? super P> predicate, P parameter)
Implements org. Filters a collection into a PartitionIterable based on the evaluation of the predicate. |
| public V | put(K key, V value)
Implements java. Associates the specified value with the specified key in this map (optional operation). |
| public void | putAll(Map<? extends K, ? extends V> map)
Implements java. Copies all of the mappings from the specified map to this map (optional operation). |
| public void | putAllMapIterable(MapIterable<? extends K, ? extends V> mapIterable)
Overrides default org.
|
| public <KK> MutableOrderedMap | reduceBy(Function<? super V, ? extends KK> groupBy, Function2<? super V, ? super V, ? extends V> reduceFunction)
Overrides default org. Implements org. Applies an aggregate function over the iterable grouping results into a map based on the specific groupBy function. |
| public MutableOrderedMap | reject(Predicate2<? super K, ? super V> predicate)
Implements org. For each key and value of the map the predicate is evaluated, if the result of the evaluation is false, that key and value are returned in a new map. |
| public MutableList | reject(Predicate<? super V> predicate)
Implements org. Returns all elements of the source collection that return false when evaluating of the predicate. |
| public <P> MutableList | rejectWith(Predicate2<? super V, ? super P> predicate, P parameter)
Implements org. Similar to |
| public V | remove(Object key)
Implements java. Removes the mapping for a key from this map if it is present (optional operation). |
| public V | removeKey(K key)
Implements org. Remove an entry from the map at the specified |
| public MutableOrderedMap | select(Predicate2<? super K, ? super V> predicate)
Implements org. For each key and value of the map the predicate is evaluated, if the result of the evaluation is true, that key and value are returned in a new map. |
| public MutableList | select(Predicate<? super V> predicate)
Implements org. Returns all elements of the source collection that return true when evaluating the predicate. |
| public <S> MutableList | selectInstancesOf(Class<S> clazz)
Implements org. Returns all elements of the source collection that are instances of the Class |
| public <P> MutableList | selectWith(Predicate2<? super V, ? super P> predicate, P parameter)
Implements org. Similar to |
| public int | size()
Implements org. Returns the number of items in this iterable. |
| public <V1> MutableObjectDoubleMap | sumByDouble(Function<? super V, ? extends V1> groupBy, DoubleFunction<? super V> function)
Implements org. Groups and sums the values using the two specified functions. |
| public <V1> MutableObjectDoubleMap | sumByFloat(Function<? super V, ? extends V1> groupBy, FloatFunction<? super V> function)
Implements org. Groups and sums the values using the two specified functions. |
| public <V1> MutableObjectLongMap | sumByInt(Function<? super V, ? extends V1> groupBy, IntFunction<? super V> function)
Implements org. Groups and sums the values using the two specified functions. |
| public <V1> MutableObjectLongMap | sumByLong(Function<? super V, ? extends V1> groupBy, LongFunction<? super V> function)
Implements org. Groups and sums the values using the two specified functions. |
| public MutableOrderedMap | take(int count)
Implements org. Returns the first |
| public MutableOrderedMap | takeWhile(Predicate<? super V> predicate)
Implements org. Returns the initial elements that satisfy the Predicate. |
| public MutableOrderedMap | tap(Procedure<? super V> procedure)
Implements org. Executes the Procedure for each value of the map and returns |
| public ImmutableOrderedMap | toImmutable()
Implements org. Returns an immutable copy of this map. |
| public MutableOrderedMap | toReversed()
Implements org. Returns a new ReversibleIterable in reverse order. |
| public MutableStack | toStack()
Overrides default org. Converts the OrderedIterable to a mutable MutableStack implementation. |
| public String | toString()
Overrides org. Implements org. Returns a string with the keys and values of this map separated by commas with spaces and enclosed in curly braces. |
| public V | updateValue(K key, Function0<? extends V> factory, Function<? super V, ? extends V> function)
Implements org. Looks up the value associated with |
| public <P> V | updateValueWith(K key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter)
Implements org. Same as |
| public MutableCollection | values()
Implements java. Returns a |
| public RichIterable | valuesView()
Implements org. Returns an unmodifiable lazy iterable wrapped around the values for the map. |
| public MutableOrderedMap | withAllKeyValueArguments(Pair<? extends K, ? extends V>... keyValues)
Implements org. Convenience var-args version of withAllKeyValues |
| public MutableOrderedMap | withAllKeyValues(Iterable<? extends Pair<? extends K, ? extends V>> keyValues)
Implements org. This method allows mutable, fixed size, and immutable maps the ability to add elements to their existing elements. |
| public MutableOrderedMap | withKeyValue(K key, V value)
Implements org. This method allows mutable, fixed size, and immutable maps the ability to add elements to their existing elements. |
| public MutableOrderedMap | withMap(Map<? extends K, ? extends V> map)
Overrides default org. Similar to |
| public MutableOrderedMap | withMapIterable(MapIterable<? extends K, ? extends V> mapIterable)
Overrides default org.
|
| public MutableOrderedMap | withoutAllKeys(Iterable<? extends K> keys)
Implements org. This method allows mutable, fixed size, and immutable maps the ability to remove elements from their existing elements. |
| public MutableOrderedMap | withoutKey(K key)
Implements org. This method allows mutable, fixed size, and immutable maps the ability to remove elements from their existing elements. |
| public <S> MutableList | zip(Iterable<S> that)
Implements org. Returns a |
| public MutableList | zipWithIndex()
Implements org. Zips this |