| Package | Description |
|---|---|
| org.docx4j.com.google.common.base | |
| org.docx4j.com.google.common.collect |
| Modifier and Type | Method and Description |
|---|---|
Predicate<T> |
Equivalence.equivalentTo(T target)
Returns a predicate that evaluates to true if and only if the input is equivalent to
target according to this equivalence relation. |
| Modifier and Type | Method and Description |
|---|---|
static <T> boolean |
Iterators.all(Iterator<T> iterator,
Predicate<? super T> predicate)
Returns
true if every element returned by iterator satisfies the given
predicate. |
static <T> boolean |
Iterators.any(Iterator<T> iterator,
Predicate<? super T> predicate)
Returns
true if one or more elements returned by iterator satisfy the given
predicate. |
static <T> T |
Iterators.find(Iterator<? extends T> iterator,
Predicate<? super T> predicate,
T defaultValue)
Returns the first element in
iterator that satisfies the given predicate. |
static <T> T |
Iterators.find(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(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(Iterator<T> removeFrom,
Predicate<? super T> predicate)
Removes every element that satisfies the provided predicate from the iterator.
|
Copyright © 2007-2020. All Rights Reserved.