public class ImmutableArrayBag<T> extends AbstractImmutableBag<T> implements Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> boolean |
allSatisfyWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> boolean |
anySatisfyWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
<V> org.eclipse.collections.api.bag.ImmutableBag<V> |
collect(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function) |
<V> org.eclipse.collections.api.bag.ImmutableBag<V> |
collectIf(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate,
org.eclipse.collections.api.block.function.Function<? super T,? extends V> function) |
static <T> ImmutableArrayBag<T> |
copyFrom(org.eclipse.collections.api.bag.Bag<T> bag) |
T |
detect(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> T |
detectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
void |
each(org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure) |
boolean |
equals(Object other) |
<V> org.eclipse.collections.api.bag.ImmutableBag<V> |
flatCollect(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function) |
void |
forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure) |
T |
getFirst() |
T |
getLast() |
<V> org.eclipse.collections.api.multimap.bag.ImmutableBagMultimap<V,T> |
groupBy(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function) |
<V> org.eclipse.collections.api.multimap.bag.ImmutableBagMultimap<V,T> |
groupByEach(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function) |
int |
hashCode() |
Iterator<T> |
iterator() |
T |
max() |
T |
max(Comparator<? super T> comparator) |
<V extends Comparable<? super V>> |
maxBy(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function) |
T |
min() |
T |
min(Comparator<? super T> comparator) |
<V extends Comparable<? super V>> |
minBy(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function) |
static <T> ImmutableArrayBag<T> |
newBagWith(T... elements) |
org.eclipse.collections.api.bag.ImmutableBag<T> |
newWith(T element) |
org.eclipse.collections.api.bag.ImmutableBag<T> |
newWithAll(Iterable<? extends T> elements) |
org.eclipse.collections.api.bag.ImmutableBag<T> |
newWithout(T element) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> boolean |
noneSatisfyWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
int |
occurrencesOf(Object item) |
org.eclipse.collections.api.bag.ImmutableBag<T> |
reject(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
org.eclipse.collections.api.bag.ImmutableBag<T> |
select(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
org.eclipse.collections.api.bag.ImmutableBag<T> |
selectByOccurrences(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
<S> org.eclipse.collections.api.bag.ImmutableBag<S> |
selectInstancesOf(Class<S> clazz) |
int |
size() |
int |
sizeDistinct() |
org.eclipse.collections.api.map.MutableMap<T,Integer> |
toMapOfItemToCount() |
<S> org.eclipse.collections.api.bag.ImmutableBag<org.eclipse.collections.api.tuple.Pair<T,S>> |
zip(Iterable<S> that)
Deprecated.
in 6.0. Use
OrderedIterable.zip(Iterable) instead. |
org.eclipse.collections.api.set.ImmutableSet<org.eclipse.collections.api.tuple.Pair<T,Integer>> |
zipWithIndex()
Deprecated.
in 6.0. Use
OrderedIterable.zipWithIndex() instead. |
bottomOccurrences, chunk, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, collectWith, groupByUniqueKey, newWithoutAll, partition, partitionWith, rejectWith, selectWith, tap, toImmutable, topOccurrencesadd, addAll, aggregateBy, aggregateInPlaceBy, clear, remove, removeAll, retainAllcollect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, count, flatCollect, groupBy, groupByEach, injectInto, injectInto, injectInto, injectInto, injectInto, injectIntoWith, reject, rejectWith, select, selectWith, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toBag, toList, toSet, toSortedBag, toSortedBag, toSortedList, toSortedSet, toSortedSet, toStringOfItemToCountappendString, appendString, appendString, asLazy, contains, containsAll, containsAllArguments, containsAllIterable, countWith, detectIfNone, detectWithIfNone, forEach, forEachWith, forEachWithIndex, groupByUniqueKey, isEmpty, makeString, makeString, makeString, notEmpty, sumByDouble, sumByFloat, sumByInt, sumByLong, toArray, toArray, toMap, toSortedBagBy, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSetBy, toString, zip, zipWithIndexaggregateBy, aggregateInPlaceByappendString, appendString, appendString, asLazy, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, count, countWith, detectIfNone, detectWithIfNone, flatCollect, groupBy, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, isEmpty, makeString, makeString, makeString, notEmpty, reject, rejectWith, select, selectWith, sumByDouble, sumByFloat, sumByInt, sumByLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, toString, zip, zipWithIndexforEach, forEachWith, forEachWithIndexforEach, spliteratorcontains, containsAll, isEmpty, parallelStream, removeIf, spliterator, stream, toArray, toArraypublic static <T> ImmutableArrayBag<T> newBagWith(T... elements)
public static <T> ImmutableArrayBag<T> copyFrom(org.eclipse.collections.api.bag.Bag<T> bag)
public void forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure)
forEachWithOccurrences in interface org.eclipse.collections.api.bag.Bag<T>public int sizeDistinct()
sizeDistinct in interface org.eclipse.collections.api.bag.Bag<T>public int size()
size in interface Collection<T>size in interface org.eclipse.collections.api.RichIterable<T>public int occurrencesOf(Object item)
occurrencesOf in interface org.eclipse.collections.api.bag.Bag<T>public org.eclipse.collections.api.map.MutableMap<T,Integer> toMapOfItemToCount()
public org.eclipse.collections.api.bag.ImmutableBag<T> newWithAll(Iterable<? extends T> elements)
public org.eclipse.collections.api.bag.ImmutableBag<T> selectByOccurrences(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
selectByOccurrences in interface org.eclipse.collections.api.bag.Bag<T>selectByOccurrences in interface org.eclipse.collections.api.bag.ImmutableBag<T>selectByOccurrences in interface org.eclipse.collections.api.bag.ImmutableBagIterable<T>selectByOccurrences in interface org.eclipse.collections.api.bag.UnsortedBag<T>public <S> org.eclipse.collections.api.bag.ImmutableBag<S> selectInstancesOf(Class<S> clazz)
selectInstancesOf in interface org.eclipse.collections.api.bag.Bag<T>selectInstancesOf in interface org.eclipse.collections.api.bag.ImmutableBag<T>selectInstancesOf in interface org.eclipse.collections.api.bag.ImmutableBagIterable<T>selectInstancesOf in interface org.eclipse.collections.api.bag.UnsortedBag<T>selectInstancesOf in interface org.eclipse.collections.api.collection.ImmutableCollection<T>selectInstancesOf in interface org.eclipse.collections.api.RichIterable<T>public <V> org.eclipse.collections.api.multimap.bag.ImmutableBagMultimap<V,T> groupBy(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function)
groupBy in interface org.eclipse.collections.api.bag.Bag<T>groupBy in interface org.eclipse.collections.api.bag.ImmutableBag<T>groupBy in interface org.eclipse.collections.api.bag.ImmutableBagIterable<T>groupBy in interface org.eclipse.collections.api.bag.UnsortedBag<T>groupBy in interface org.eclipse.collections.api.collection.ImmutableCollection<T>groupBy in interface org.eclipse.collections.api.RichIterable<T>public <V> org.eclipse.collections.api.multimap.bag.ImmutableBagMultimap<V,T> groupByEach(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function)
groupByEach in interface org.eclipse.collections.api.bag.Bag<T>groupByEach in interface org.eclipse.collections.api.bag.ImmutableBag<T>groupByEach in interface org.eclipse.collections.api.bag.ImmutableBagIterable<T>groupByEach in interface org.eclipse.collections.api.bag.UnsortedBag<T>groupByEach in interface org.eclipse.collections.api.collection.ImmutableCollection<T>groupByEach in interface org.eclipse.collections.api.RichIterable<T>public T getFirst()
getFirst in interface org.eclipse.collections.api.RichIterable<T>public T getLast()
getLast in interface org.eclipse.collections.api.RichIterable<T>public org.eclipse.collections.api.bag.ImmutableBag<T> select(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
select in interface org.eclipse.collections.api.bag.Bag<T>select in interface org.eclipse.collections.api.bag.ImmutableBag<T>select in interface org.eclipse.collections.api.bag.ImmutableBagIterable<T>select in interface org.eclipse.collections.api.bag.UnsortedBag<T>select in interface org.eclipse.collections.api.collection.ImmutableCollection<T>select in interface org.eclipse.collections.api.RichIterable<T>public org.eclipse.collections.api.bag.ImmutableBag<T> reject(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
reject in interface org.eclipse.collections.api.bag.Bag<T>reject in interface org.eclipse.collections.api.bag.ImmutableBag<T>reject in interface org.eclipse.collections.api.bag.ImmutableBagIterable<T>reject in interface org.eclipse.collections.api.bag.UnsortedBag<T>reject in interface org.eclipse.collections.api.collection.ImmutableCollection<T>reject in interface org.eclipse.collections.api.RichIterable<T>public <V> org.eclipse.collections.api.bag.ImmutableBag<V> collect(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function)
collect in interface org.eclipse.collections.api.bag.ImmutableBag<T>collect in interface org.eclipse.collections.api.bag.UnsortedBag<T>collect in interface org.eclipse.collections.api.collection.ImmutableCollection<T>collect in interface org.eclipse.collections.api.RichIterable<T>public <V> org.eclipse.collections.api.bag.ImmutableBag<V> collectIf(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate, org.eclipse.collections.api.block.function.Function<? super T,? extends V> function)
collectIf in interface org.eclipse.collections.api.bag.ImmutableBag<T>collectIf in interface org.eclipse.collections.api.bag.UnsortedBag<T>collectIf in interface org.eclipse.collections.api.collection.ImmutableCollection<T>collectIf in interface org.eclipse.collections.api.RichIterable<T>public <V> org.eclipse.collections.api.bag.ImmutableBag<V> flatCollect(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function)
flatCollect in interface org.eclipse.collections.api.bag.ImmutableBag<T>flatCollect in interface org.eclipse.collections.api.bag.UnsortedBag<T>flatCollect in interface org.eclipse.collections.api.collection.ImmutableCollection<T>flatCollect in interface org.eclipse.collections.api.RichIterable<T>public boolean equals(Object other)
public int hashCode()
public void each(org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure)
each in interface org.eclipse.collections.api.RichIterable<T>public boolean anySatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
anySatisfy in interface org.eclipse.collections.api.RichIterable<T>anySatisfy in class AbstractRichIterable<T>public <P> boolean anySatisfyWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
anySatisfyWith in interface org.eclipse.collections.api.RichIterable<T>anySatisfyWith in class AbstractRichIterable<T>public boolean allSatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
allSatisfy in interface org.eclipse.collections.api.RichIterable<T>allSatisfy in class AbstractRichIterable<T>public <P> boolean allSatisfyWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
allSatisfyWith in interface org.eclipse.collections.api.RichIterable<T>allSatisfyWith in class AbstractRichIterable<T>public boolean noneSatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
noneSatisfy in interface org.eclipse.collections.api.RichIterable<T>noneSatisfy in class AbstractRichIterable<T>public <P> boolean noneSatisfyWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
noneSatisfyWith in interface org.eclipse.collections.api.RichIterable<T>noneSatisfyWith in class AbstractRichIterable<T>public T detect(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
detect in interface org.eclipse.collections.api.RichIterable<T>detect in class AbstractRichIterable<T>public <P> T detectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
detectWith in interface org.eclipse.collections.api.RichIterable<T>detectWith in class AbstractRichIterable<T>public T min(Comparator<? super T> comparator)
min in interface org.eclipse.collections.api.RichIterable<T>min in class AbstractRichIterable<T>public T max(Comparator<? super T> comparator)
max in interface org.eclipse.collections.api.RichIterable<T>max in class AbstractRichIterable<T>public T min()
min in interface org.eclipse.collections.api.RichIterable<T>min in class AbstractRichIterable<T>public T max()
max in interface org.eclipse.collections.api.RichIterable<T>max in class AbstractRichIterable<T>public <V extends Comparable<? super V>> T minBy(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function)
minBy in interface org.eclipse.collections.api.RichIterable<T>minBy in class AbstractRichIterable<T>public <V extends Comparable<? super V>> T maxBy(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function)
maxBy in interface org.eclipse.collections.api.RichIterable<T>maxBy in class AbstractRichIterable<T>@Deprecated public <S> org.eclipse.collections.api.bag.ImmutableBag<org.eclipse.collections.api.tuple.Pair<T,S>> zip(Iterable<S> that)
OrderedIterable.zip(Iterable) instead.zip in interface org.eclipse.collections.api.bag.ImmutableBag<T>zip in interface org.eclipse.collections.api.bag.UnsortedBag<T>zip in interface org.eclipse.collections.api.collection.ImmutableCollection<T>zip in interface org.eclipse.collections.api.RichIterable<T>@Deprecated public org.eclipse.collections.api.set.ImmutableSet<org.eclipse.collections.api.tuple.Pair<T,Integer>> zipWithIndex()
OrderedIterable.zipWithIndex() instead.zipWithIndex in interface org.eclipse.collections.api.bag.Bag<T>zipWithIndex in interface org.eclipse.collections.api.bag.ImmutableBag<T>zipWithIndex in interface org.eclipse.collections.api.bag.ImmutableBagIterable<T>zipWithIndex in interface org.eclipse.collections.api.bag.UnsortedBag<T>zipWithIndex in interface org.eclipse.collections.api.collection.ImmutableCollection<T>zipWithIndex in interface org.eclipse.collections.api.RichIterable<T>Copyright © 2004–2017. All rights reserved.