public class ImmutableArrayBag<T> extends AbstractImmutableBag<T> implements Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> boolean |
allSatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
boolean |
anySatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> boolean |
anySatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
<V> com.gs.collections.api.bag.ImmutableBag<V> |
collect(com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
<V> com.gs.collections.api.bag.ImmutableBag<V> |
collectIf(com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
static <T> ImmutableArrayBag<T> |
copyFrom(com.gs.collections.api.bag.Bag<T> bag) |
T |
detect(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> T |
detectWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
void |
each(com.gs.collections.api.block.procedure.Procedure<? super T> procedure) |
boolean |
equals(Object other) |
<V> com.gs.collections.api.bag.ImmutableBag<V> |
flatCollect(com.gs.collections.api.block.function.Function<? super T,? extends Iterable<V>> function) |
void |
forEachWithOccurrences(com.gs.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure) |
T |
getFirst() |
T |
getLast() |
<V> com.gs.collections.api.multimap.bag.ImmutableBagMultimap<V,T> |
groupBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
<V> com.gs.collections.api.multimap.bag.ImmutableBagMultimap<V,T> |
groupByEach(com.gs.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(com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
T |
min() |
T |
min(Comparator<? super T> comparator) |
<V extends Comparable<? super V>> |
minBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
static <T> ImmutableArrayBag<T> |
newBagWith(T... elements) |
com.gs.collections.api.bag.ImmutableBag<T> |
newWith(T element) |
com.gs.collections.api.bag.ImmutableBag<T> |
newWithAll(Iterable<? extends T> elements) |
com.gs.collections.api.bag.ImmutableBag<T> |
newWithout(T element) |
boolean |
noneSatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> boolean |
noneSatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
int |
occurrencesOf(Object item) |
com.gs.collections.api.bag.ImmutableBag<T> |
reject(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
com.gs.collections.api.bag.ImmutableBag<T> |
select(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
com.gs.collections.api.bag.ImmutableBag<T> |
selectByOccurrences(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate) |
<S> com.gs.collections.api.bag.ImmutableBag<S> |
selectInstancesOf(Class<S> clazz) |
int |
size() |
int |
sizeDistinct() |
com.gs.collections.api.map.MutableMap<T,Integer> |
toMapOfItemToCount() |
<S> com.gs.collections.api.bag.ImmutableBag<com.gs.collections.api.tuple.Pair<T,S>> |
zip(Iterable<S> that)
Deprecated.
in 6.0. Use
OrderedIterable.zip(Iterable) instead. |
com.gs.collections.api.set.ImmutableSet<com.gs.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(com.gs.collections.api.bag.Bag<T> bag)
public void forEachWithOccurrences(com.gs.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure)
forEachWithOccurrences in interface com.gs.collections.api.bag.Bag<T>public int sizeDistinct()
sizeDistinct in interface com.gs.collections.api.bag.Bag<T>public int size()
size in interface com.gs.collections.api.RichIterable<T>size in interface Collection<T>public int occurrencesOf(Object item)
occurrencesOf in interface com.gs.collections.api.bag.Bag<T>public com.gs.collections.api.bag.ImmutableBag<T> newWithAll(Iterable<? extends T> elements)
public com.gs.collections.api.bag.ImmutableBag<T> selectByOccurrences(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate)
selectByOccurrences in interface com.gs.collections.api.bag.Bag<T>selectByOccurrences in interface com.gs.collections.api.bag.ImmutableBag<T>selectByOccurrences in interface com.gs.collections.api.bag.ImmutableBagIterable<T>selectByOccurrences in interface com.gs.collections.api.bag.UnsortedBag<T>public <S> com.gs.collections.api.bag.ImmutableBag<S> selectInstancesOf(Class<S> clazz)
selectInstancesOf in interface com.gs.collections.api.bag.Bag<T>selectInstancesOf in interface com.gs.collections.api.bag.ImmutableBag<T>selectInstancesOf in interface com.gs.collections.api.bag.ImmutableBagIterable<T>selectInstancesOf in interface com.gs.collections.api.bag.UnsortedBag<T>selectInstancesOf in interface com.gs.collections.api.collection.ImmutableCollection<T>selectInstancesOf in interface com.gs.collections.api.RichIterable<T>public <V> com.gs.collections.api.multimap.bag.ImmutableBagMultimap<V,T> groupBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
groupBy in interface com.gs.collections.api.bag.Bag<T>groupBy in interface com.gs.collections.api.bag.ImmutableBag<T>groupBy in interface com.gs.collections.api.bag.ImmutableBagIterable<T>groupBy in interface com.gs.collections.api.bag.UnsortedBag<T>groupBy in interface com.gs.collections.api.collection.ImmutableCollection<T>groupBy in interface com.gs.collections.api.RichIterable<T>public <V> com.gs.collections.api.multimap.bag.ImmutableBagMultimap<V,T> groupByEach(com.gs.collections.api.block.function.Function<? super T,? extends Iterable<V>> function)
groupByEach in interface com.gs.collections.api.bag.Bag<T>groupByEach in interface com.gs.collections.api.bag.ImmutableBag<T>groupByEach in interface com.gs.collections.api.bag.ImmutableBagIterable<T>groupByEach in interface com.gs.collections.api.bag.UnsortedBag<T>groupByEach in interface com.gs.collections.api.collection.ImmutableCollection<T>groupByEach in interface com.gs.collections.api.RichIterable<T>public T getFirst()
getFirst in interface com.gs.collections.api.RichIterable<T>public T getLast()
getLast in interface com.gs.collections.api.RichIterable<T>public com.gs.collections.api.bag.ImmutableBag<T> select(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
select in interface com.gs.collections.api.bag.Bag<T>select in interface com.gs.collections.api.bag.ImmutableBag<T>select in interface com.gs.collections.api.bag.ImmutableBagIterable<T>select in interface com.gs.collections.api.bag.UnsortedBag<T>select in interface com.gs.collections.api.collection.ImmutableCollection<T>select in interface com.gs.collections.api.RichIterable<T>public com.gs.collections.api.bag.ImmutableBag<T> reject(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
reject in interface com.gs.collections.api.bag.Bag<T>reject in interface com.gs.collections.api.bag.ImmutableBag<T>reject in interface com.gs.collections.api.bag.ImmutableBagIterable<T>reject in interface com.gs.collections.api.bag.UnsortedBag<T>reject in interface com.gs.collections.api.collection.ImmutableCollection<T>reject in interface com.gs.collections.api.RichIterable<T>public <V> com.gs.collections.api.bag.ImmutableBag<V> collect(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
collect in interface com.gs.collections.api.bag.ImmutableBag<T>collect in interface com.gs.collections.api.bag.UnsortedBag<T>collect in interface com.gs.collections.api.collection.ImmutableCollection<T>collect in interface com.gs.collections.api.RichIterable<T>public <V> com.gs.collections.api.bag.ImmutableBag<V> collectIf(com.gs.collections.api.block.predicate.Predicate<? super T> predicate, com.gs.collections.api.block.function.Function<? super T,? extends V> function)
collectIf in interface com.gs.collections.api.bag.ImmutableBag<T>collectIf in interface com.gs.collections.api.bag.UnsortedBag<T>collectIf in interface com.gs.collections.api.collection.ImmutableCollection<T>collectIf in interface com.gs.collections.api.RichIterable<T>public <V> com.gs.collections.api.bag.ImmutableBag<V> flatCollect(com.gs.collections.api.block.function.Function<? super T,? extends Iterable<V>> function)
flatCollect in interface com.gs.collections.api.bag.ImmutableBag<T>flatCollect in interface com.gs.collections.api.bag.UnsortedBag<T>flatCollect in interface com.gs.collections.api.collection.ImmutableCollection<T>flatCollect in interface com.gs.collections.api.RichIterable<T>public boolean equals(Object other)
public int hashCode()
public void each(com.gs.collections.api.block.procedure.Procedure<? super T> procedure)
each in interface com.gs.collections.api.RichIterable<T>public boolean anySatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
anySatisfy in interface com.gs.collections.api.RichIterable<T>anySatisfy in class AbstractRichIterable<T>public <P> boolean anySatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
anySatisfyWith in interface com.gs.collections.api.RichIterable<T>anySatisfyWith in class AbstractRichIterable<T>public boolean allSatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
allSatisfy in interface com.gs.collections.api.RichIterable<T>allSatisfy in class AbstractRichIterable<T>public <P> boolean allSatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
allSatisfyWith in interface com.gs.collections.api.RichIterable<T>allSatisfyWith in class AbstractRichIterable<T>public boolean noneSatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
noneSatisfy in interface com.gs.collections.api.RichIterable<T>noneSatisfy in class AbstractRichIterable<T>public <P> boolean noneSatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
noneSatisfyWith in interface com.gs.collections.api.RichIterable<T>noneSatisfyWith in class AbstractRichIterable<T>public T detect(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
detect in interface com.gs.collections.api.RichIterable<T>detect in class AbstractRichIterable<T>public <P> T detectWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
detectWith in interface com.gs.collections.api.RichIterable<T>detectWith in class AbstractRichIterable<T>public T min(Comparator<? super T> comparator)
min in interface com.gs.collections.api.RichIterable<T>min in class AbstractRichIterable<T>public T max(Comparator<? super T> comparator)
max in interface com.gs.collections.api.RichIterable<T>max in class AbstractRichIterable<T>public T min()
min in interface com.gs.collections.api.RichIterable<T>min in class AbstractRichIterable<T>public T max()
max in interface com.gs.collections.api.RichIterable<T>max in class AbstractRichIterable<T>public <V extends Comparable<? super V>> T minBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
minBy in interface com.gs.collections.api.RichIterable<T>minBy in class AbstractRichIterable<T>public <V extends Comparable<? super V>> T maxBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
maxBy in interface com.gs.collections.api.RichIterable<T>maxBy in class AbstractRichIterable<T>@Deprecated public <S> com.gs.collections.api.bag.ImmutableBag<com.gs.collections.api.tuple.Pair<T,S>> zip(Iterable<S> that)
OrderedIterable.zip(Iterable) instead.zip in interface com.gs.collections.api.bag.ImmutableBag<T>zip in interface com.gs.collections.api.bag.UnsortedBag<T>zip in interface com.gs.collections.api.collection.ImmutableCollection<T>zip in interface com.gs.collections.api.RichIterable<T>@Deprecated public com.gs.collections.api.set.ImmutableSet<com.gs.collections.api.tuple.Pair<T,Integer>> zipWithIndex()
OrderedIterable.zipWithIndex() instead.zipWithIndex in interface com.gs.collections.api.bag.Bag<T>zipWithIndex in interface com.gs.collections.api.bag.ImmutableBag<T>zipWithIndex in interface com.gs.collections.api.bag.ImmutableBagIterable<T>zipWithIndex in interface com.gs.collections.api.bag.UnsortedBag<T>zipWithIndex in interface com.gs.collections.api.collection.ImmutableCollection<T>zipWithIndex in interface com.gs.collections.api.RichIterable<T>Copyright © 2004–2016. All rights reserved.