| Package | Description |
|---|---|
| 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.primitive |
| Modifier and Type | Method and Description |
|---|---|
ImmutableIntBag |
ImmutableBag.collectInt(IntFunction<? super T> intFunction) |
| Modifier and Type | Method and Description |
|---|---|
ImmutableIntBag |
ImmutableIntBag.newWith(int element) |
ImmutableIntBag |
ImmutableIntBag.newWithAll(IntIterable elements) |
ImmutableIntBag |
ImmutableIntBag.newWithout(int element) |
ImmutableIntBag |
ImmutableIntBag.newWithoutAll(IntIterable elements) |
ImmutableIntBag |
ImmutableIntBag.reject(IntPredicate predicate) |
ImmutableIntBag |
ImmutableIntBag.select(IntPredicate predicate) |
ImmutableIntBag |
IntBag.toImmutable()
Returns an immutable copy of this bag.
|
ImmutableIntBag |
MutableIntBag.toImmutable()
Returns an immutable copy of this bag.
|
| Modifier and Type | Method and Description |
|---|---|
ImmutableIntBag |
ImmutableIntBagFactory.of()
Same as
ImmutableIntBagFactory.with(). |
ImmutableIntBag |
ImmutableIntBagFactory.of(int... items)
Same as
ImmutableIntBagFactory.with(int[]). |
ImmutableIntBag |
ImmutableIntBagFactory.of(int one)
Same as
ImmutableIntBagFactory.with(int). |
ImmutableIntBag |
ImmutableIntBagFactory.ofAll(IntIterable items)
|
ImmutableIntBag |
ImmutableIntBagFactory.with() |
ImmutableIntBag |
ImmutableIntBagFactory.with(int... items) |
ImmutableIntBag |
ImmutableIntBagFactory.with(int one) |
ImmutableIntBag |
ImmutableIntBagFactory.withAll(IntIterable items) |