-
-
Methods in org.docx4j.com.google.common.collect with parameters of type Predicate
| Modifier and Type |
Method |
Description |
static <T> boolean |
Iterators.all(java.util.Iterator<T> iterator,
Predicate<? super T> predicate) |
Returns true if every element returned by iterator satisfies the given
predicate.
|
static <T> boolean |
Iterators.any(java.util.Iterator<T> iterator,
Predicate<? super T> predicate) |
Returns true if one or more elements returned by iterator satisfy the given
predicate.
|
static <T> @Nullable T |
Iterators.find(java.util.Iterator<? extends T> iterator,
Predicate<? super T> predicate,
@Nullable T defaultValue) |
Returns the first element in iterator that satisfies the given predicate.
|
static <T> T |
Iterators.find(java.util.Iterator<T> iterator,
Predicate<? super T> predicate) |
Returns the first element in iterator that satisfies the given predicate; use this
method only when such an element is known to exist.
|
static <T> int |
Iterators.indexOf(java.util.Iterator<T> iterator,
Predicate<? super T> predicate) |
Returns the index in iterator of the first element that satisfies the provided
predicate, or -1 if the Iterator has no such elements.
|
static <T> boolean |
Iterators.removeIf(java.util.Iterator<T> removeFrom,
Predicate<? super T> predicate) |
Removes every element that satisfies the provided predicate from the iterator.
|