| Package | Description |
|---|---|
| org.eclipse.collections.api.bag |
This package contains interfaces for Bag API.
|
| org.eclipse.collections.api.list |
This package contains interfaces for list API which enhance the performance and functionality of
List. |
| org.eclipse.collections.api.map.primitive |
This package contains API for primitive to primitive maps, primitive to object maps and object to primitive maps with mutable and immutable variants.
|
| org.eclipse.collections.api.ordered |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Bag.allSatisfyWithOccurrences(ObjectIntPredicate<? super T> predicate)
Returns true if the predicate evaluates to true for all elements of the Bag.
|
boolean |
Bag.anySatisfyWithOccurrences(ObjectIntPredicate<? super T> predicate)
Returns true if the predicate evaluates to true for any element of the Bag.
|
T |
Bag.detectWithOccurrences(ObjectIntPredicate<? super T> predicate)
Returns an element of the Bag that satisfies the predicate or null if such an element does not exist
|
boolean |
Bag.noneSatisfyWithOccurrences(ObjectIntPredicate<? super T> predicate)
Returns true if the Bag is empty or if the predicate evaluates to false for all elements of the Bag.
|
| Modifier and Type | Method and Description |
|---|---|
default MutableList<T> |
MutableList.rejectWithIndex(ObjectIntPredicate<? super T> predicate)
Returns a new MutableList with all elements of the collection that return false when evaluating the specified
predicate which is supplied each element and its relative index.
|
default ListIterable<T> |
ListIterable.rejectWithIndex(ObjectIntPredicate<? super T> predicate)
Returns a new ListIterable with all elements of the collection that return false when evaluating the specified
predicate which is supplied each element and its relative index.
|
default ImmutableList<T> |
ImmutableList.rejectWithIndex(ObjectIntPredicate<? super T> predicate)
Returns a new ImmutableList with all elements of the collection that return false when evaluating the specified
predicate which is supplied each element and its relative index.
|
default MutableList<T> |
MutableList.selectWithIndex(ObjectIntPredicate<? super T> predicate)
Returns a new MutableList with all elements of the collection that return true when evaluating the specified
predicate which is supplied each element and its relative index.
|
default ListIterable<T> |
ListIterable.selectWithIndex(ObjectIntPredicate<? super T> predicate)
Returns a new ListIterable with all elements of the collection that return true when evaluating the specified
predicate which is supplied each element and its relative index.
|
default ImmutableList<T> |
ImmutableList.selectWithIndex(ObjectIntPredicate<? super T> predicate)
Returns a new ImmutableList with all elements of the collection that return true when evaluating the specified
predicate which is supplied each element and its relative index.
|
| Modifier and Type | Method and Description |
|---|---|
MutableObjectIntMap<K> |
MutableObjectIntMap.reject(ObjectIntPredicate<? super K> predicate) |
ObjectIntMap<K> |
ObjectIntMap.reject(ObjectIntPredicate<? super K> predicate)
Return a copy of this map containing only the key/value pairs that do not match the
predicate.
|
ImmutableObjectIntMap<K> |
ImmutableObjectIntMap.reject(ObjectIntPredicate<? super K> predicate) |
MutableObjectIntMap<K> |
MutableObjectIntMap.select(ObjectIntPredicate<? super K> predicate) |
ObjectIntMap<K> |
ObjectIntMap.select(ObjectIntPredicate<? super K> predicate)
Return a copy of this map containing only the key/value pairs that match the predicate.
|
ImmutableObjectIntMap<K> |
ImmutableObjectIntMap.select(ObjectIntPredicate<? super K> predicate) |
| Modifier and Type | Method and Description |
|---|---|
default <R extends Collection<T>> |
OrderedIterable.rejectWithIndex(ObjectIntPredicate<? super T> predicate,
R target)
Adds all elements to the target Collection that return false when evaluating the specified predicate which is
supplied each element and its relative index.
|
default <R extends Collection<T>> |
OrderedIterable.selectWithIndex(ObjectIntPredicate<? super T> predicate,
R target)
Adds all elements to the target Collection that return true when evaluating the specified predicate which is
supplied each element and its relative index.
|
Copyright © 2004–2021. All rights reserved.