| Package | Description |
|---|---|
| org.eclipse.collections.api.bag |
This package contains interfaces for Bag API.
|
| org.eclipse.collections.api.bag.primitive |
This package contains API for Primitive Bags with Mutable and Immutable variants.
|
| org.eclipse.collections.api.factory.bag |
This package contains factory API for creating instance of type
Bag. |
| org.eclipse.collections.api.map |
This package contains interfaces for map API which enhance the performance and functionality of
Map |
| org.eclipse.collections.api.multimap.bag |
This package contains interfaces for
BagMultimap. |
| org.eclipse.collections.api.partition.bag |
This package contains interfaces for
PartitionBag. |
| Modifier and Type | Method and Description |
|---|---|
<V> ImmutableBag<V> |
ImmutableBag.collect(Function<? super T,? extends V> function) |
<V> ImmutableBag<V> |
ImmutableBag.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<P,V> ImmutableBag<V> |
ImmutableBag.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<V> ImmutableBag<V> |
ImmutableBag.flatCollect(Function<? super T,? extends Iterable<V>> function) |
ImmutableBag<T> |
ImmutableBag.newWith(T element) |
ImmutableBag<T> |
ImmutableBag.newWithAll(Iterable<? extends T> elements) |
ImmutableBag<T> |
ImmutableBag.newWithout(T element) |
ImmutableBag<T> |
ImmutableBag.newWithoutAll(Iterable<? extends T> elements) |
ImmutableBag<T> |
ImmutableBag.reject(Predicate<? super T> predicate) |
<P> ImmutableBag<T> |
ImmutableBag.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
ImmutableBag<T> |
ImmutableBag.select(Predicate<? super T> predicate) |
ImmutableBag<T> |
ImmutableBag.selectByOccurrences(IntPredicate predicate) |
<S> ImmutableBag<S> |
ImmutableBag.selectInstancesOf(Class<S> clazz) |
<P> ImmutableBag<T> |
ImmutableBag.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
ImmutableBag<T> |
ImmutableBag.tap(Procedure<? super T> procedure) |
ImmutableBag<T> |
UnsortedBag.toImmutable()
Converts the UnsortedBag to an ImmutableBag.
|
<S> ImmutableBag<Pair<T,S>> |
ImmutableBag.zip(Iterable<S> that)
Deprecated.
in 6.0. Use
OrderedIterable.zip(Iterable) instead. |
| Modifier and Type | Method and Description |
|---|---|
<V> ImmutableBag<V> |
ImmutableBooleanBag.collect(BooleanToObjectFunction<? extends V> function) |
<V> ImmutableBag<V> |
ImmutableByteBag.collect(ByteToObjectFunction<? extends V> function) |
<V> ImmutableBag<V> |
ImmutableCharBag.collect(CharToObjectFunction<? extends V> function) |
<V> ImmutableBag<V> |
ImmutableDoubleBag.collect(DoubleToObjectFunction<? extends V> function) |
<V> ImmutableBag<V> |
ImmutableFloatBag.collect(FloatToObjectFunction<? extends V> function) |
<V> ImmutableBag<V> |
ImmutableIntBag.collect(IntToObjectFunction<? extends V> function) |
<V> ImmutableBag<V> |
ImmutableLongBag.collect(LongToObjectFunction<? extends V> function) |
<V> ImmutableBag<V> |
ImmutableShortBag.collect(ShortToObjectFunction<? extends V> function) |
| Modifier and Type | Method and Description |
|---|---|
<T> ImmutableBag<T> |
ImmutableBagFactory.empty() |
<T> ImmutableBag<T> |
ImmutableBagFactory.of()
Same as
ImmutableBagFactory.empty(). |
<T> ImmutableBag<T> |
ImmutableBagFactory.of(T... elements)
Same as
ImmutableBagFactory.with(Object[]). |
<T> ImmutableBag<T> |
ImmutableBagFactory.of(T element)
Same as
ImmutableBagFactory.with(Object). |
<T> ImmutableBag<T> |
ImmutableBagFactory.ofAll(Iterable<? extends T> items)
|
<T> ImmutableBag<T> |
ImmutableBagFactory.with()
Same as
ImmutableBagFactory.empty(). |
<T> ImmutableBag<T> |
ImmutableBagFactory.with(T... elements) |
<T> ImmutableBag<T> |
ImmutableBagFactory.with(T element) |
<T> ImmutableBag<T> |
ImmutableBagFactory.withAll(Iterable<? extends T> items) |
| Modifier and Type | Method and Description |
|---|---|
<VV> ImmutableBag<VV> |
ImmutableMap.collect(Function<? super V,? extends VV> function) |
<R> ImmutableBag<R> |
ImmutableMap.collectIf(Predicate<? super V> predicate,
Function<? super V,? extends R> function) |
<P,VV> ImmutableBag<VV> |
ImmutableMap.collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
<R> ImmutableBag<R> |
ImmutableMap.flatCollect(Function<? super V,? extends Iterable<R>> function) |
ImmutableBag<V> |
ImmutableMap.reject(Predicate<? super V> predicate) |
<P> ImmutableBag<V> |
ImmutableMap.rejectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
ImmutableBag<V> |
ImmutableMap.select(Predicate<? super V> predicate) |
<S> ImmutableBag<S> |
ImmutableMap.selectInstancesOf(Class<S> clazz) |
<P> ImmutableBag<V> |
ImmutableMap.selectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
<S> ImmutableBag<Pair<V,S>> |
ImmutableMap.zip(Iterable<S> that)
Deprecated.
in 6.0. Use
OrderedIterable.zip(Iterable) instead. |
| Modifier and Type | Method and Description |
|---|---|
ImmutableBag<V> |
ImmutableBagMultimap.get(K key) |
| Modifier and Type | Method and Description |
|---|---|
ImmutableBag<T> |
PartitionImmutableBag.getRejected() |
ImmutableBag<T> |
PartitionImmutableBag.getSelected() |
Copyright © 2004–2017. All rights reserved.