| Package | Description |
|---|---|
| com.gs.collections.api |
This package contains interfaces for GS Collections API.
|
| com.gs.collections.api.bag |
This package contains interfaces for Bag API.
|
| com.gs.collections.api.bag.primitive |
This package contains API for Primitive Bags with Mutable and Immutable variants.
|
| com.gs.collections.api.factory.bag |
This package contains factory API for creating instance of type
Bag. |
| com.gs.collections.api.multimap.bag |
This package contains interfaces for
BagMultimap. |
| com.gs.collections.api.partition.bag |
This package contains interfaces for
PartitionBag. |
| Modifier and Type | Method and Description |
|---|---|
MutableBag<T> |
ParallelIterable.toBag() |
MutableBag<T> |
RichIterable.toBag()
Converts the collection to the default MutableBag implementation.
|
| Modifier and Type | Method and Description |
|---|---|
MutableBag<T> |
MutableBag.asSynchronized() |
MutableBag<T> |
MutableBag.asUnmodifiable() |
<V> MutableBag<V> |
MutableBag.collect(Function<? super T,? extends V> function) |
<V> MutableBag<V> |
MutableBag.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<P,V> MutableBag<V> |
MutableBag.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<V> MutableBag<V> |
MutableBag.flatCollect(Function<? super T,? extends java.lang.Iterable<V>> function) |
MutableBag<T> |
MutableBag.newEmpty() |
MutableBag<T> |
MutableBag.reject(Predicate<? super T> predicate) |
<P> MutableBag<T> |
MutableBag.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
MutableBag<T> |
MutableBag.select(Predicate<? super T> predicate) |
MutableBag<T> |
MutableBag.selectByOccurrences(IntPredicate predicate) |
<S> MutableBag<S> |
MutableBag.selectInstancesOf(java.lang.Class<S> clazz) |
<P> MutableBag<T> |
MutableBag.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
MutableBag<T> |
MutableBag.with(T element) |
MutableBag<T> |
MutableBag.withAll(java.lang.Iterable<? extends T> elements) |
MutableBag<T> |
MutableBag.without(T element) |
MutableBag<T> |
MutableBag.withoutAll(java.lang.Iterable<? extends T> elements) |
<S> MutableBag<Pair<T,S>> |
MutableBag.zip(java.lang.Iterable<S> that) |
| Modifier and Type | Method and Description |
|---|---|
<V> MutableBag<V> |
MutableBooleanBag.collect(BooleanToObjectFunction<? extends V> function) |
<V> MutableBag<V> |
MutableByteBag.collect(ByteToObjectFunction<? extends V> function) |
<V> MutableBag<V> |
MutableCharBag.collect(CharToObjectFunction<? extends V> function) |
<V> MutableBag<V> |
MutableDoubleBag.collect(DoubleToObjectFunction<? extends V> function) |
<V> MutableBag<V> |
MutableFloatBag.collect(FloatToObjectFunction<? extends V> function) |
<V> MutableBag<V> |
MutableIntBag.collect(IntToObjectFunction<? extends V> function) |
<V> MutableBag<V> |
MutableLongBag.collect(LongToObjectFunction<? extends V> function) |
<V> MutableBag<V> |
MutableShortBag.collect(ShortToObjectFunction<? extends V> function) |
| Modifier and Type | Method and Description |
|---|---|
<T> MutableBag<T> |
MutableBagFactory.of()
Same as
MutableBagFactory.with(). |
<T> MutableBag<T> |
MutableBagFactory.of(T... elements)
Same as
MutableBagFactory.with(Object[]). |
<T> MutableBag<T> |
MutableBagFactory.with() |
<T> MutableBag<T> |
MutableBagFactory.with(T... elements) |
| Modifier and Type | Method and Description |
|---|---|
MutableBag<V> |
MutableBagMultimap.get(K key) |
MutableBag<V> |
MutableBagMultimap.removeAll(java.lang.Object key) |
MutableBag<V> |
MutableBagMultimap.replaceValues(K key,
java.lang.Iterable<? extends V> values) |
| Modifier and Type | Method and Description |
|---|---|
MutableBag<T> |
PartitionMutableBag.getRejected() |
MutableBag<T> |
PartitionMutableBag.getSelected() |