public abstract class AbstractBag<T> extends AbstractRichIterable<T> implements Collection<T>, org.eclipse.collections.api.bag.Bag<T>
| Constructor and Description |
|---|
AbstractBag() |
| Modifier and Type | Method and Description |
|---|---|
<V,R extends Collection<V>> |
collect(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function,
R target) |
<R extends org.eclipse.collections.api.collection.primitive.MutableBooleanCollection> |
collectBoolean(org.eclipse.collections.api.block.function.primitive.BooleanFunction<? super T> booleanFunction,
R target) |
<R extends org.eclipse.collections.api.collection.primitive.MutableByteCollection> |
collectByte(org.eclipse.collections.api.block.function.primitive.ByteFunction<? super T> byteFunction,
R target) |
<R extends org.eclipse.collections.api.collection.primitive.MutableCharCollection> |
collectChar(org.eclipse.collections.api.block.function.primitive.CharFunction<? super T> charFunction,
R target) |
<R extends org.eclipse.collections.api.collection.primitive.MutableDoubleCollection> |
collectDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super T> doubleFunction,
R target) |
<R extends org.eclipse.collections.api.collection.primitive.MutableFloatCollection> |
collectFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction<? super T> floatFunction,
R target) |
<V,R extends Collection<V>> |
collectIf(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate,
org.eclipse.collections.api.block.function.Function<? super T,? extends V> function,
R target) |
<R extends org.eclipse.collections.api.collection.primitive.MutableIntCollection> |
collectInt(org.eclipse.collections.api.block.function.primitive.IntFunction<? super T> intFunction,
R target) |
<R extends org.eclipse.collections.api.collection.primitive.MutableLongCollection> |
collectLong(org.eclipse.collections.api.block.function.primitive.LongFunction<? super T> longFunction,
R target) |
<R extends org.eclipse.collections.api.collection.primitive.MutableShortCollection> |
collectShort(org.eclipse.collections.api.block.function.primitive.ShortFunction<? super T> shortFunction,
R target) |
<P,V,R extends Collection<V>> |
collectWith(org.eclipse.collections.api.block.function.Function2<? super T,? super P,? extends V> function,
P parameter,
R target) |
int |
count(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
<V,R extends Collection<V>> |
flatCollect(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function,
R target) |
<V,R extends org.eclipse.collections.api.multimap.MutableMultimap<V,T>> |
groupBy(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function,
R target) |
<V,R extends org.eclipse.collections.api.multimap.MutableMultimap<V,T>> |
groupByEach(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function,
R target) |
double |
injectInto(double injectedValue,
org.eclipse.collections.api.block.function.primitive.DoubleObjectToDoubleFunction<? super T> function) |
float |
injectInto(float injectedValue,
org.eclipse.collections.api.block.function.primitive.FloatObjectToFloatFunction<? super T> function) |
int |
injectInto(int injectedValue,
org.eclipse.collections.api.block.function.primitive.IntObjectToIntFunction<? super T> function) |
<IV> IV |
injectInto(IV injectedValue,
org.eclipse.collections.api.block.function.Function2<? super IV,? super T,? extends IV> function) |
long |
injectInto(long injectedValue,
org.eclipse.collections.api.block.function.primitive.LongObjectToLongFunction<? super T> function) |
<IV,P> IV |
injectIntoWith(IV injectedValue,
org.eclipse.collections.api.block.function.Function3<? super IV,? super T,? super P,? extends IV> function,
P parameter) |
<R extends Collection<T>> |
reject(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate,
R target) |
<P,R extends Collection<T>> |
rejectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter,
R target) |
<R extends Collection<T>> |
select(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate,
R target) |
<P,R extends Collection<T>> |
selectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter,
R target) |
double |
sumOfDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super T> function) |
double |
sumOfFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction<? super T> function) |
long |
sumOfInt(org.eclipse.collections.api.block.function.primitive.IntFunction<? super T> function) |
long |
sumOfLong(org.eclipse.collections.api.block.function.primitive.LongFunction<? super T> function) |
org.eclipse.collections.api.bag.MutableBag<T> |
toBag() |
org.eclipse.collections.api.list.MutableList<T> |
toList() |
org.eclipse.collections.api.set.MutableSet<T> |
toSet() |
org.eclipse.collections.api.bag.sorted.MutableSortedBag<T> |
toSortedBag() |
org.eclipse.collections.api.bag.sorted.MutableSortedBag<T> |
toSortedBag(Comparator<? super T> comparator) |
org.eclipse.collections.api.list.MutableList<T> |
toSortedList(Comparator<? super T> comparator) |
org.eclipse.collections.api.set.sorted.MutableSortedSet<T> |
toSortedSet() |
org.eclipse.collections.api.set.sorted.MutableSortedSet<T> |
toSortedSet(Comparator<? super T> comparator) |
String |
toStringOfItemToCount() |
allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, contains, containsAll, containsAllArguments, containsAllIterable, countWith, detect, detectIfNone, detectWith, detectWithIfNone, forEach, forEachWith, forEachWithIndex, groupByUniqueKey, isEmpty, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, notEmpty, sumByDouble, sumByFloat, sumByInt, sumByLong, toArray, toArray, toMap, toSortedBagBy, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSetBy, toString, zip, zipWithIndexequals, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArraybottomOccurrences, equals, forEachWithOccurrences, groupBy, groupByEach, hashCode, occurrencesOf, partition, partitionWith, reject, rejectWith, select, selectByOccurrences, selectInstancesOf, selectWith, sizeDistinct, tap, toImmutable, toMapOfItemToCount, topOccurrences, zipWithIndexaggregateBy, aggregateInPlaceBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, countWith, detect, detectIfNone, detectWith, detectWithIfNone, each, flatCollect, getFirst, getLast, groupByUniqueKey, groupByUniqueKey, isEmpty, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, notEmpty, size, sumByDouble, sumByFloat, sumByInt, sumByLong, toArray, toArray, toMap, toSortedBagBy, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSetBy, toString, zip, zip, zipWithIndexpublic <R extends Collection<T>> R select(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate, R target)
select in interface org.eclipse.collections.api.RichIterable<T>select in class AbstractRichIterable<T>public <P,R extends Collection<T>> R selectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter, R target)
selectWith in interface org.eclipse.collections.api.RichIterable<T>selectWith in class AbstractRichIterable<T>public <R extends Collection<T>> R reject(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate, R target)
reject in interface org.eclipse.collections.api.RichIterable<T>reject in class AbstractRichIterable<T>public <P,R extends Collection<T>> R rejectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter, R target)
rejectWith in interface org.eclipse.collections.api.RichIterable<T>rejectWith in class AbstractRichIterable<T>public int count(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
count in interface org.eclipse.collections.api.RichIterable<T>count in class AbstractRichIterable<T>public <V,R extends Collection<V>> R collect(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function, R target)
collect in interface org.eclipse.collections.api.RichIterable<T>collect in class AbstractRichIterable<T>public <P,V,R extends Collection<V>> R collectWith(org.eclipse.collections.api.block.function.Function2<? super T,? super P,? extends V> function, P parameter, R target)
collectWith in interface org.eclipse.collections.api.RichIterable<T>collectWith in class AbstractRichIterable<T>public <V,R extends Collection<V>> R collectIf(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate, org.eclipse.collections.api.block.function.Function<? super T,? extends V> function, R target)
collectIf in interface org.eclipse.collections.api.RichIterable<T>collectIf in class AbstractRichIterable<T>public <V,R extends Collection<V>> R flatCollect(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function, R target)
flatCollect in interface org.eclipse.collections.api.RichIterable<T>flatCollect in class AbstractRichIterable<T>public <R extends org.eclipse.collections.api.collection.primitive.MutableBooleanCollection> R collectBoolean(org.eclipse.collections.api.block.function.primitive.BooleanFunction<? super T> booleanFunction, R target)
collectBoolean in interface org.eclipse.collections.api.RichIterable<T>collectBoolean in class AbstractRichIterable<T>public <R extends org.eclipse.collections.api.collection.primitive.MutableByteCollection> R collectByte(org.eclipse.collections.api.block.function.primitive.ByteFunction<? super T> byteFunction, R target)
collectByte in interface org.eclipse.collections.api.RichIterable<T>collectByte in class AbstractRichIterable<T>public <R extends org.eclipse.collections.api.collection.primitive.MutableCharCollection> R collectChar(org.eclipse.collections.api.block.function.primitive.CharFunction<? super T> charFunction, R target)
collectChar in interface org.eclipse.collections.api.RichIterable<T>collectChar in class AbstractRichIterable<T>public <R extends org.eclipse.collections.api.collection.primitive.MutableDoubleCollection> R collectDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super T> doubleFunction, R target)
collectDouble in interface org.eclipse.collections.api.RichIterable<T>collectDouble in class AbstractRichIterable<T>public <R extends org.eclipse.collections.api.collection.primitive.MutableFloatCollection> R collectFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction<? super T> floatFunction, R target)
collectFloat in interface org.eclipse.collections.api.RichIterable<T>collectFloat in class AbstractRichIterable<T>public <R extends org.eclipse.collections.api.collection.primitive.MutableIntCollection> R collectInt(org.eclipse.collections.api.block.function.primitive.IntFunction<? super T> intFunction, R target)
collectInt in interface org.eclipse.collections.api.RichIterable<T>collectInt in class AbstractRichIterable<T>public <R extends org.eclipse.collections.api.collection.primitive.MutableLongCollection> R collectLong(org.eclipse.collections.api.block.function.primitive.LongFunction<? super T> longFunction, R target)
collectLong in interface org.eclipse.collections.api.RichIterable<T>collectLong in class AbstractRichIterable<T>public <R extends org.eclipse.collections.api.collection.primitive.MutableShortCollection> R collectShort(org.eclipse.collections.api.block.function.primitive.ShortFunction<? super T> shortFunction, R target)
collectShort in interface org.eclipse.collections.api.RichIterable<T>collectShort in class AbstractRichIterable<T>public <V,R extends org.eclipse.collections.api.multimap.MutableMultimap<V,T>> R groupBy(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function, R target)
groupBy in interface org.eclipse.collections.api.RichIterable<T>groupBy in class AbstractRichIterable<T>public <V,R extends org.eclipse.collections.api.multimap.MutableMultimap<V,T>> R groupByEach(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function, R target)
groupByEach in interface org.eclipse.collections.api.RichIterable<T>groupByEach in class AbstractRichIterable<T>public long sumOfInt(org.eclipse.collections.api.block.function.primitive.IntFunction<? super T> function)
sumOfInt in interface org.eclipse.collections.api.RichIterable<T>sumOfInt in class AbstractRichIterable<T>public double sumOfFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction<? super T> function)
sumOfFloat in interface org.eclipse.collections.api.RichIterable<T>sumOfFloat in class AbstractRichIterable<T>public long sumOfLong(org.eclipse.collections.api.block.function.primitive.LongFunction<? super T> function)
sumOfLong in interface org.eclipse.collections.api.RichIterable<T>sumOfLong in class AbstractRichIterable<T>public double sumOfDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super T> function)
sumOfDouble in interface org.eclipse.collections.api.RichIterable<T>sumOfDouble in class AbstractRichIterable<T>public <IV> IV injectInto(IV injectedValue,
org.eclipse.collections.api.block.function.Function2<? super IV,? super T,? extends IV> function)
injectInto in interface org.eclipse.collections.api.RichIterable<T>injectInto in class AbstractRichIterable<T>public int injectInto(int injectedValue,
org.eclipse.collections.api.block.function.primitive.IntObjectToIntFunction<? super T> function)
injectInto in interface org.eclipse.collections.api.RichIterable<T>injectInto in class AbstractRichIterable<T>public long injectInto(long injectedValue,
org.eclipse.collections.api.block.function.primitive.LongObjectToLongFunction<? super T> function)
injectInto in interface org.eclipse.collections.api.RichIterable<T>injectInto in class AbstractRichIterable<T>public double injectInto(double injectedValue,
org.eclipse.collections.api.block.function.primitive.DoubleObjectToDoubleFunction<? super T> function)
injectInto in interface org.eclipse.collections.api.RichIterable<T>injectInto in class AbstractRichIterable<T>public float injectInto(float injectedValue,
org.eclipse.collections.api.block.function.primitive.FloatObjectToFloatFunction<? super T> function)
injectInto in interface org.eclipse.collections.api.RichIterable<T>injectInto in class AbstractRichIterable<T>public <IV,P> IV injectIntoWith(IV injectedValue,
org.eclipse.collections.api.block.function.Function3<? super IV,? super T,? super P,? extends IV> function,
P parameter)
public String toStringOfItemToCount()
toStringOfItemToCount in interface org.eclipse.collections.api.bag.Bag<T>public org.eclipse.collections.api.list.MutableList<T> toList()
toList in interface org.eclipse.collections.api.RichIterable<T>toList in class AbstractRichIterable<T>public org.eclipse.collections.api.list.MutableList<T> toSortedList(Comparator<? super T> comparator)
toSortedList in interface org.eclipse.collections.api.RichIterable<T>toSortedList in class AbstractRichIterable<T>public org.eclipse.collections.api.set.MutableSet<T> toSet()
toSet in interface org.eclipse.collections.api.RichIterable<T>toSet in class AbstractRichIterable<T>public org.eclipse.collections.api.set.sorted.MutableSortedSet<T> toSortedSet()
toSortedSet in interface org.eclipse.collections.api.RichIterable<T>toSortedSet in class AbstractRichIterable<T>public org.eclipse.collections.api.set.sorted.MutableSortedSet<T> toSortedSet(Comparator<? super T> comparator)
toSortedSet in interface org.eclipse.collections.api.RichIterable<T>toSortedSet in class AbstractRichIterable<T>public org.eclipse.collections.api.bag.MutableBag<T> toBag()
toBag in interface org.eclipse.collections.api.RichIterable<T>toBag in class AbstractRichIterable<T>public org.eclipse.collections.api.bag.sorted.MutableSortedBag<T> toSortedBag()
toSortedBag in interface org.eclipse.collections.api.RichIterable<T>toSortedBag in class AbstractRichIterable<T>public org.eclipse.collections.api.bag.sorted.MutableSortedBag<T> toSortedBag(Comparator<? super T> comparator)
toSortedBag in interface org.eclipse.collections.api.RichIterable<T>toSortedBag in class AbstractRichIterable<T>Copyright © 2004–2018. All rights reserved.