| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <V, R extends Collection | collect(Function<? super T, ? extends V> function, R target)
Overrides org. Implements org. Same as |
| public <R extends MutableBooleanCollection> R | collectBoolean(BooleanFunction<? super T> booleanFunction, R target)
Overrides default org. Same as |
| public <R extends MutableByteCollection> R | collectByte(ByteFunction<? super T> byteFunction, R target)
Overrides default org. Same as |
| public <R extends MutableCharCollection> R | collectChar(CharFunction<? super T> charFunction, R target)
Overrides default org. Same as |
| public <R extends MutableDoubleCollection> R | collectDouble(DoubleFunction<? super T> doubleFunction, R target)
Overrides default org. Same as |
| public <R extends MutableFloatCollection> R | collectFloat(FloatFunction<? super T> floatFunction, R target)
Overrides default org. Same as |
| public <V, R extends Collection | collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function, R target)
Overrides org. Implements org. Same as the collectIf method with two parameters but uses the specified target collection for the results. |
| public <R extends MutableIntCollection> R | collectInt(IntFunction<? super T> intFunction, R target)
Overrides default org. Same as |
| public <R extends MutableLongCollection> R | collectLong(LongFunction<? super T> longFunction, R target)
Overrides default org. Same as |
| public <R extends MutableShortCollection> R | collectShort(ShortFunction<? super T> shortFunction, R target)
Overrides default org. Same as |
| public <P, V, R extends Collection | collectWith(Function2<? super T, ? super P, ? extends V> function, P parameter, R target)
Overrides org. Implements org. Same as collectWith but with a targetCollection parameter to gather the results. |
| public int | count(Predicate<? super T> predicate)
Overrides org. Implements org. Return the total number of elements that answer true to the specified predicate. |
| public <V, R extends Collection | flatCollect(Function<? super T, ? extends Iterable<V>> function, R target)
Overrides org. Implements org. Same as flatCollect, only the results are collected into the target collection. |
| public <R extends MutableBooleanCollection> R | flatCollectBoolean(Function<? super T, ? 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 T, ? 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 T, ? 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 T, ? 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 T, ? 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 T, ? 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 T, ? 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 T, ? extends ShortIterable> function, R target)
Overrides default org. Same as flatCollect, only the results are collected into the target collection. |
| public <V, R extends MutableMultimap | groupBy(Function<? super T, ? extends V> function, R target)
Overrides org. Implements org. Same as |
| public <V, R extends MutableMultimap | groupByEach(Function<? super T, ? extends Iterable<V>> function, R target)
Overrides org. Implements org. Same as |
| public <IV> IV | injectInto(IV injectedValue, Function2<? super IV, ? super T, ? extends IV> function)
Overrides org. 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 T> function)
Overrides org. 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 T> function)
Overrides org. 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 T> function)
Overrides org. 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 T> function)
Overrides org. 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 <IV, P> IV | injectIntoWith(IV injectedValue, Function3<? super IV, ? super T, ? super P, ? extends IV> function, P parameter)
|
| protected MutableList | occurrencesSortingBy(int n, IntFunction<ObjectIntPair<T>> function, MutableList<ObjectIntPair<T>> returnWhenEmpty)
|
| public <R extends Collection | reject(Predicate<? super T> predicate, R target)
Overrides org. Implements org. Same as the reject method with one parameter but uses the specified target collection for the results. |
| public <P, R extends Collection | rejectWith(Predicate2<? super T, ? super P> predicate, P parameter, R target)
Overrides org. Implements org. Similar to |
| public <R extends Collection | select(Predicate<? super T> predicate, R target)
Overrides org. Implements org. Same as the select method with one parameter but uses the specified target collection for the results. |
| public <P, R extends Collection | selectWith(Predicate2<? super T, ? super P> predicate, P parameter, R target)
Overrides org. Implements org. Similar to |
| public double | sumOfDouble(DoubleFunction<? super T> function)
Overrides org. 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 T> function)
Overrides org. 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 T> function)
Overrides org. 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 T> function)
Overrides org. Implements org. Returns the final long result of evaluating function for each element of the iterable and adding the results together. |
| public Object[] | toArray()
Overrides default org. Implements java. Returns an array containing all of the elements in this collection. |
| public <E> E[] | toArray(E[] array)
Overrides default org. Implements java. Returns an array containing all of the elements in this collection; the runtime type of the returned array is that of the specified array. |
| public MutableBag | toBag()
Overrides org. Implements org. Converts the collection to the default MutableBag implementation. |
| public MutableList | toList()
Overrides org. Implements org. Converts the collection to a MutableList implementation. |
| protected MutableList | |
| public MutableSet | toSet()
Overrides org. Implements org. Converts the collection to a MutableSet implementation. |
| public MutableSortedBag | toSortedBag()
Overrides org. Implements org. Converts the collection to a MutableSortedBag implementation and sorts it using the natural order of the elements. |
| public MutableSortedBag | toSortedBag(Comparator<? super T> comparator)
Overrides org. Implements org. Converts the collection to the MutableSortedBag implementation and sorts it using the specified comparator. |
| public MutableList | toSortedList(Comparator<? super T> comparator)
Overrides default org. Converts the collection to a MutableList implementation and sorts it using the specified comparator. |
| public MutableSortedSet | toSortedSet()
Overrides org. Implements org. Converts the collection to a MutableSortedSet implementation and sorts it using the natural order of the elements. |
| public MutableSortedSet | toSortedSet(Comparator<? super T> comparator)
Overrides org. Implements org. Converts the collection to a MutableSortedSet implementation and sorts it using the specified comparator. |
| public String | toStringOfItemToCount()
Implements org. Returns a string representation of this bag. |