MutableSortedMap#asUnmodifiable()
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public V | add(Pair<? extends K, ? extends V> keyValuePair)
Overrides default org. This method allows mutable map the ability to add an element in the form of |
| public boolean | allSatisfy(Predicate<? super V> predicate)
Implements org. Returns true if the predicate evaluates to true for every element of the iterable or if the iterable is empty. |
| public <P> boolean | allSatisfyWith(Predicate2<? super V, ? super P> predicate, P parameter)
Implements org. Returns true if the predicate evaluates to true for every element of the collection, or returns false. |
| public boolean | anySatisfy(Predicate<? super V> predicate)
Implements org. Returns true if the predicate evaluates to true for any element of the iterable. |
| public <P> boolean | anySatisfyWith(Predicate2<? super V, ? super P> predicate, P parameter)
Implements org. Returns true if the predicate evaluates to true for any element of the collection, or return false. |
| public void | appendString(Appendable appendable)
Overrides default org. Prints a string representation of this collection onto the given |
| public void | appendString(Appendable appendable, String separator)
Overrides default org. Prints a string representation of this collection onto the given |
| public void | appendString(Appendable appendable, String start, String separator, String end)
Implements org. Prints a string representation of this collection onto the given |
| public LazyIterable | asLazy()
Implements org. Returns a lazy (deferred) iterable, most likely implemented by calling LazyIterate.adapt(this). |
| public MutableSortedMap | asSynchronized()
Implements org. Returns a synchronized wrapper backed by this map. |
| public MutableSortedMap | asUnmodifiable()
Implements org. Returns an unmodifiable view of this map. |
| public RichIterable | chunk(int size)
Implements org. Partitions elements in fixed size chunks. |
| public MutableSortedMap | clone()
Overrides java. Implements org. Creates and returns a copy of this object. |
| public <K2, V2> MutableMap | 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 <R, C extends Collection | collect(Function<? super V, ? extends R> function, C target)
Implements org. Same as |
| 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 MutableBooleanList | collectBoolean(BooleanFunction<? super V> booleanFunction)
Implements org. Returns a new primitive |
| public <R extends MutableBooleanCollection> R | collectBoolean(BooleanFunction<? super V> booleanFunction, R target)
Overrides default org. Same as |
| public MutableByteList | collectByte(ByteFunction<? super V> byteFunction)
Implements org. Returns a new primitive |
| public <R extends MutableByteCollection> R | collectByte(ByteFunction<? super V> byteFunction, R target)
Overrides default org. Same as |
| public MutableCharList | collectChar(CharFunction<? super V> charFunction)
Implements org. Returns a new primitive |
| public <R extends MutableCharCollection> R | collectChar(CharFunction<? super V> charFunction, R target)
Overrides default org. Same as |
| public MutableDoubleList | collectDouble(DoubleFunction<? super V> doubleFunction)
Implements org. Returns a new primitive |
| public <R extends MutableDoubleCollection> R | collectDouble(DoubleFunction<? super V> doubleFunction, R target)
Overrides default org. Same as |
| public MutableFloatList | collectFloat(FloatFunction<? super V> floatFunction)
Implements org. Returns a new primitive |
| public <R extends MutableFloatCollection> R | collectFloat(FloatFunction<? super V> floatFunction, R target)
Overrides default org. Same as |
| public <R, C extends Collection | collectIf(Predicate<? super V> predicate, Function<? super V, ? extends R> function, C target)
Implements org. Same as the collectIf method with two parameters but uses the specified target collection for the results. |
| 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 extends MutableIntCollection> R | collectInt(IntFunction<? super V> intFunction, R target)
Overrides default org. Same as |
| public <E> MutableSortedMap | collectKeysAndValues(Iterable<E> iterable, Function<? super E, ? extends K> keyFunction, Function<? super E, ? extends V> valueFunction)
Implements org. Adds all the entries derived from |
| 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 <R extends MutableLongCollection> R | collectLong(LongFunction<? super V> longFunction, R target)
Overrides default org. Same as |
| public MutableShortList | collectShort(ShortFunction<? super V> shortFunction)
Implements org. Returns a new primitive |
| public <R extends MutableShortCollection> R | collectShort(ShortFunction<? super V> shortFunction, R target)
Overrides default org. Same as |
| public <R> MutableSortedMap | 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 <P, R, C extends Collection | collectWith(Function2<? super V, ? super P, ? extends R> function, P parameter, C targetCollection)
Implements org. Same as collectWith but with a targetCollection parameter to gather the results. |
| public <R> MutableList | collectWithIndex(ObjectIntToObjectFunction<? super V, ? extends R> function)
Overrides default org. Returns a new OrderedIterable using results obtained by applying the specified function to each element and its corresponding index. |
| public <V1, R extends Collection | collectWithIndex(ObjectIntToObjectFunction<? super V, ? extends V1> function, R target)
Overrides default org. Adds elements to the target Collection using results obtained by applying the specified function to each element and its corresponding index. |
| public boolean | contains(Object object)
Implements org. Returns true if the iterable has an element which responds true to element.equals(object). |
| public boolean | containsAll(Collection<?> source)
Implements org. Returns true if all elements in source are contained in this collection. |
| public boolean | containsAllArguments(Object... elements)
Implements org. Returns true if all elements in the specified var arg array are contained in this collection. |
| public boolean | containsAllIterable(Iterable<?> source)
Implements org. Returns true if all elements in source are contained in this collection. |
| 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 int | count(Predicate<? super V> predicate)
Implements org. Return the total number of elements that answer true to the specified predicate. |
| public <P> int | countWith(Predicate2<? super V, ? super P> predicate, P parameter)
Implements org. Returns the total number of elements that evaluate to true for the specified predicate. |
| 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 V | detect(Predicate<? super V> predicate)
Implements org. Returns the first element of the iterable for which the predicate evaluates to true or null in the case where no element returns true. |
| public V | detectIfNone(Predicate<? super V> predicate, Function0<? extends V> function)
Overrides default org. Returns the first element of the iterable for which the predicate evaluates to true. |
| 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 Optional | detectOptional(Predicate<? super V> predicate)
Implements org. Returns the first element of the iterable for which the predicate evaluates to true as an Optional. |
| public <P> V | detectWith(Predicate2<? super V, ? super P> predicate, P parameter)
Implements org. Returns the first element that evaluates to true for the specified predicate2 and parameter, or null if none evaluate to true. |
| public <P> V | detectWithIfNone(Predicate2<? super V, ? super P> predicate, P parameter, Function0<? extends V> function)
Implements org. Returns the first element of the iterable that evaluates to true for the specified predicate2 and parameter, or returns the value of evaluating the specified function. |
| public <P> Optional | detectWithOptional(Predicate2<? super V, ? super P> predicate, P parameter)
Implements org. Returns the first element that evaluates to true for the specified predicate2 and parameter as an Optional. |
| public MutableList | distinct()
Implements org. Returns a new |
| public MutableSortedMap | drop(int count)
Implements org. Returns an iterable after skipping the first |
| public MutableSortedMap | dropWhile(Predicate<? super V> predicate)
Implements org. Returns the final elements that do not satisfy the Predicate. |
| public void | each(Procedure<? super V> procedure)
Implements org. The procedure is executed for each element in the iterable. |
| public MutableSet | entrySet()
Overrides org. Implements org. Returns a |
| public boolean | equals(Object obj)
Overrides org. Implements org. Follows the same general contract as |
| public <R, C extends Collection | flatCollect(Function<? super V, ? extends Iterable<R>> function, C target)
Implements org. Same as flatCollect, only the results are collected into the target collection. |
| public <R> MutableList | flatCollect(Function<? super V, ? extends Iterable<R>> function)
Implements org.
|
| public <R extends MutableBooleanCollection> R | flatCollectBoolean(Function<? super V, ? extends BooleanIterable> function, R target)
Overrides default org. Same as flatCollect, only the results are collected into the target collection. |
| public <R extends MutableByteCollection> R | flatCollectByte(Function<? super V, ? extends ByteIterable> function, R target)
Overrides default org. Same as flatCollect, only the results are collected into the target collection. |
| public <R extends MutableCharCollection> R | flatCollectChar(Function<? super V, ? extends CharIterable> function, R target)
Overrides default org. Same as flatCollect, only the results are collected into the target collection. |
| public <R extends MutableDoubleCollection> R | flatCollectDouble(Function<? super V, ? extends DoubleIterable> function, R target)
Overrides default org. Same as flatCollect, only the results are collected into the target collection. |
| public <R extends MutableFloatCollection> R | flatCollectFloat(Function<? super V, ? extends FloatIterable> function, R target)
Overrides default org. Same as flatCollect, only the results are collected into the target collection. |
| public <R extends MutableIntCollection> R | flatCollectInt(Function<? super V, ? extends IntIterable> function, R target)
Overrides default org. Same as flatCollect, only the results are collected into the target collection. |
| public <R extends MutableLongCollection> R | flatCollectLong(Function<? super V, ? extends LongIterable> function, R target)
Overrides default org. Same as flatCollect, only the results are collected into the target collection. |
| public <R extends MutableShortCollection> R | flatCollectShort(Function<? super V, ? extends ShortIterable> function, R target)
Overrides default org. Same as flatCollect, only the results are collected into the target collection. |
| public MutableSortedSetMultimap | flip()
Implements org. Given a map from Domain |
| public MutableMapIterable | 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 | forEachKey(Procedure<? super K> procedure)
Implements org. Calls the |
| public void | forEachKeyValue(Procedure2<? super K, ? super V> procedure)
Implements org. Calls the |
| public void | forEachValue(Procedure<? super V> procedure)
Implements org. Calls the procedure with each value of the map. |
| public <P> void | forEachWith(Procedure2<? super V, ? super P> procedure, P parameter)
Implements org. The procedure2 is evaluated for each element in the iterable with the specified parameter provided as the second argument. |
| public void | forEachWithIndex(ObjectIntProcedure<? super V> objectIntProcedure)
Implements org. Iterates over the iterable passing each element and the current relative int index to the specified instance of ObjectIntProcedure. |
| 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 | getFirst()
Implements org. Returns the first element of an iterable. |
| public V | getIfAbsent(K key, Function0<? extends V> function)
Implements org. Return the value in the Map that corresponds to the specified key, or if there is no value at the key, return the result of evaluating the specified Function0. |
| 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. Return the value in the Map that corresponds to the specified key, or if there is no value at the key, return the result of evaluating the specified one argument Function using the specified parameter, and put that 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 V | getIfAbsentValue(K key, V value)
Implements org. Return the value in the Map that corresponds to the specified key, or if there is no value at the key, return |
| public <P> V | getIfAbsentWith(K key, Function<? super P, ? extends V> function, P parameter)
Implements org. Return the value in the Map that corresponds to the specified key, or if there is no value at the key, return the result of evaluating the specified function and parameter. |
| public V | getLast()
Implements org. Returns the last element of an iterable. |
| protected MutableSortedMap | |
| public V | getOnly()
Overrides default org. Returns the element if the iterable has exactly one element. |
| public <R> MutableListMultimap | groupBy(Function<? super V, ? extends R> 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 <R, C extends MutableMultimap | groupBy(Function<? super V, ? extends R> function, C target)
Implements org. Same as |
| public <R> MutableListMultimap | groupByEach(Function<? super V, ? extends Iterable<R>> function)
Implements org. Similar to |
| public <R, C extends MutableMultimap | groupByEach(Function<? super V, ? extends Iterable<R>> function, C target)
Implements org. Same as |
| public <VV> MutableMap | groupByUniqueKey(Function<? super V, ? extends VV> function)
Overrides default 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 <VV, R extends MutableMapIterable | groupByUniqueKey(Function<? super V, ? extends VV> function, R target)
Implements org. Same as |
| public int | hashCode()
Overrides org. Implements org. Follows the same general contract as |
| public MutableSortedMap | headMap(K toKey)
Overrides org. Implements org. Returns a view of the portion of this map whose keys are
strictly less than |
| public <A> A | ifPresentApply(K key, Function<? super V, ? extends A> function)
Implements org. If there is a value in the Map that corresponds to the specified key return the result of applying the specified Function on the value, otherwise return null. |
| public <IV> IV | injectInto(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function)
Implements org. Returns the final result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public int | injectInto(int injectedValue, IntObjectToIntFunction<? super V> function)
Implements org. Returns the final int result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public long | injectInto(long injectedValue, LongObjectToLongFunction<? super V> function)
Implements org. Returns the final long result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public double | injectInto(double injectedValue, DoubleObjectToDoubleFunction<? super V> function)
Implements org. Returns the final double result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public float | injectInto(float injectedValue, FloatObjectToFloatFunction<? super V> function)
Implements org. Returns the final float result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public <R extends Collection | into(R target)
Implements org. Adds all the elements in this iterable to the specific target Collection. |
| private boolean | |
| public Iterator | |
| public MutableSet | keySet()
Overrides org. Implements org. The underlying set for the keys is sorted in ascending order according to their natural ordering or a custom comparator. |
| 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 String | makeString()
Overrides default org. Returns a string representation of this collection by delegating to |
| public String | makeString(String separator)
Overrides default org. Returns a string representation of this collection by delegating to |
| public String | makeString(String start, String separator, String end)
Overrides default org. Returns a string representation of this collection with the elements separated by the specified separator and enclosed between the start and end strings. |
| public V | max()
Implements org. Returns the maximum element out of this container based on the natural order. |
| public V | max(Comparator<? super V> comparator)
Implements org. Returns the maximum element out of this container based on the comparator. |
| public <R extends Comparable | maxBy(Function<? super V, ? extends R> function)
Implements org. Returns the maximum elements out of this container based on the natural order of the attribute returned by Function. |
| public V | min()
Implements org. Returns the minimum element out of this container based on the natural order. |
| public V | min(Comparator<? super V> comparator)
Implements org. Returns the minimum element out of this container based on the comparator. |
| public <R extends Comparable | minBy(Function<? super V, ? extends R> function)
Implements org. Returns the minimum elements out of this container based on the natural order of the attribute returned by Function. |
| public MutableSortedMap | newEmpty()
Implements org. Creates a new instance of the same type with the same internal Comparator. |
| public boolean | noneSatisfy(Predicate<? super V> predicate)
Implements org. Returns true if the predicate evaluates to false for every element of the iterable or if the iterable is empty. |
| public <P> boolean | noneSatisfyWith(Predicate2<? super V, ? super P> predicate, P parameter)
Implements org. Returns true if the predicate evaluates to false for every element of the collection, or return false. |
| public boolean | notEmpty()
Overrides default org. The English equivalent of !this.isEmpty() |
| public static <K, V, M extends SortedMap | |
| 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 void | putAllMapIterable(MapIterable<? extends K, ? extends V> mapIterable)
Overrides default org.
|
| public V | putPair(Pair<? extends K, ? extends V> keyValuePair)
Overrides default org. This method allows mutable map the ability to add an element in the form of |
| public MutableSortedMap | 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 <R extends Collection | reject(Predicate<? super V> predicate, R target)
Implements org. Same as the reject method with one parameter but uses the specified target collection for the results. |
| 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 <P, R extends Collection | rejectWith(Predicate2<? super V, ? super P> predicate, P parameter, R targetCollection)
Implements org. Similar to |
| public boolean | removeAllKeys(Set<? extends K> keys)
Overrides default org. Remove entries from the map at the specified |
| public boolean | removeIf(Predicate2<? super K, ? super V> predicate)
Overrides default org. Remove an entry from the map if the |
| public V | removeKey(K key)
Implements org. Remove an entry from the map at the specified |
| public MutableSortedMap | 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 <R extends Collection | select(Predicate<? super V> predicate, R target)
Implements org. Same as the select method with one parameter but uses the specified target collection for the results. |
| 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 <P, R extends Collection | selectWith(Predicate2<? super V, ? super P> predicate, P parameter, R targetCollection)
Implements org. Similar to |
| public MutableSortedMap | subMap(K fromKey, K toKey)
Overrides org. Implements org. Returns a view of the portion of this map whose keys range from
|
| 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 double | sumOfDouble(DoubleFunction<? super V> function)
Implements org. Returns the final double result of evaluating function for each element of the iterable and adding the results together. |
| public double | sumOfFloat(FloatFunction<? super V> function)
Implements org. Returns the final double result of evaluating function for each element of the iterable and adding the results together. |
| public long | sumOfInt(IntFunction<? super V> function)
Implements org. Returns the final long result of evaluating function for each element of the iterable and adding the results together. |
| public long | sumOfLong(LongFunction<? super V> function)
Implements org. Returns the final long result of evaluating function for each element of the iterable and adding the results together. |
| public MutableSortedMap | tailMap(K fromKey)
Overrides org. Implements org. Returns a view of the portion of this map whose keys are
greater than or equal to |
| public MutableSortedMap | take(int count)
Implements org. Returns the first |
| public MutableSortedMap | takeWhile(Predicate<? super V> predicate)
Implements org. Returns the initial elements that satisfy the Predicate. |
| public MutableSortedMap | tap(Procedure<? super V> procedure)
Implements org. Executes the Procedure for each value of the map and returns |
| public Object[] | toArray()
Overrides default org. Converts this iterable to an array. |
| public <T> T[] | toArray(T[] a)
Overrides default org. Converts this iterable to an array using the specified target array, assuming the target array is as long or longer than the iterable. |
| public MutableBag | toBag()
Implements org. Converts the collection to the default MutableBag implementation. |
| public <NK, NV> MutableBiMap | toBiMap(Function<? super V, ? extends NK> keyFunction, Function<? super V, ? extends NV> valueFunction)
Implements org. Converts the collection to a BiMap implementation using the specified key and value functions. |
| public ImmutableSortedMap | toImmutable()
Implements org. Returns an immutable copy of this map. |
| public MutableList | toList()
Implements org. Converts the collection to a MutableList implementation. |
| public <NK, NV> MutableMap | toMap(Function<? super V, ? extends NK> keyFunction, Function<? super V, ? extends NV> valueFunction)
Implements org. Converts the collection to a MutableMap implementation using the specified key and value functions. |
| public <NK, NV, R extends Map | toMap(Function<? super V, ? extends NK> keyFunction, Function<? super V, ? extends NV> valueFunction, R target)
Overrides default org. Same as |
| public MutableSortedMap | toReversed()
Implements org. Returns a new ReversibleIterable in reverse order. |
| public MutableSet | toSet()
Implements org. Converts the collection to a MutableSet implementation. |
| public MutableSortedBag | toSortedBag()
Implements org. Converts the collection to a MutableSortedBag implementation and sorts it using the natural order of the elements. |
| public MutableSortedBag | toSortedBag(Comparator<? super V> comparator)
Implements org. Converts the collection to the MutableSortedBag implementation and sorts it using the specified comparator. |
| public MutableList | toSortedList()
Overrides default org. Converts the collection to a MutableList implementation and sorts it using the natural order of the elements. |
| public MutableList | toSortedList(Comparator<? super V> comparator)
Overrides default org. Converts the collection to a MutableList implementation and sorts it using the specified comparator. |
| public <NK, NV> MutableSortedMap | toSortedMap(Function<? super V, ? extends NK> keyFunction, Function<? super V, ? extends NV> valueFunction)
Implements org. Converts the collection to a MutableSortedMap implementation using the specified key and value functions sorted by the key elements' natural ordering. |
| public <NK, NV> MutableSortedMap | toSortedMap(Comparator<? super NK> comparator, Function<? super V, ? extends NK> keyFunction, Function<? super V, ? extends NV> valueFunction)
Implements org. Converts the collection to a MutableSortedMap implementation using the specified key and value functions sorted by the given comparator. |
| public MutableSortedSet | toSortedSet()
Implements org. Converts the collection to a MutableSortedSet implementation and sorts it using the natural order of the elements. |
| public MutableSortedSet | toSortedSet(Comparator<? super V> comparator)
Implements org. Converts the collection to a MutableSortedSet implementation and sorts it using the specified comparator. |
| public MutableStack | toStack()
Overrides default org. Converts the OrderedIterable to a mutable MutableStack implementation. |
| 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()
Overrides org. Implements org. Returns a |
| public RichIterable | valuesView()
Implements org. Returns an unmodifiable lazy iterable wrapped around the values for the map. |
| public MutableSortedMap | with(Pair<K, V>... pairs)
Overrides default org.
|
| public MutableSortedMap | withAllKeyValueArguments(Pair<? extends K, ? extends V>... keyValuePairs)
Implements org. Convenience var-args version of withAllKeyValues |
| public MutableSortedMap | 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 MutableSortedMap | 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 MutableSortedMap | withMap(Map<? extends K, ? extends V> map)
Overrides default org. Similar to |
| public MutableSortedMap | withMapIterable(MapIterable<? extends K, ? extends V> mapIterable)
Overrides default org.
|
| public MutableSortedMap | 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 MutableSortedMap | 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, R extends Collection | zip(Iterable<S> that, R target)
Implements org. Same as |
| public <S> MutableList | zip(Iterable<S> that)
Implements org. Returns a |
| public <R extends Collection | zipWithIndex(R target)
Implements org. Same as |
| public MutableList | zipWithIndex()
Implements org. Zips this |