public interface ArangoIterable<T> extends Iterable<T>
Modifier and Type | Method and Description |
---|---|
boolean |
allMatch(Predicate<? super T> predicate)
Returns whether all elements of this
ArangoIterable match the provided predicate. |
boolean |
anyMatch(Predicate<? super T> predicate)
Returns whether any elements of this
ArangoIterable match the provided predicate. |
<R extends Collection<? super T>> |
collectInto(R target)
Iterates over all elements of this
ArangoIterable and adds each to the given target. |
long |
count()
Returns the count of elements of this
ArangoIterable . |
ArangoIterable<T> |
filter(Predicate<? super T> predicate)
Returns a
ArangoIterable consisting of the elements of this ArangoIterable that match the given
predicate. |
T |
first()
Returns the first element or
null if no element exists. |
void |
foreach(Consumer<? super T> action)
Performs the given action for each element of the
ArangoIterable |
ArangoIterator<T> |
iterator() |
<R> ArangoIterable<R> |
map(Function<? super T,? extends R> mapper)
Returns a
ArangoIterable consisting of the results of applying the given function to the elements of this
ArangoIterable . |
boolean |
noneMatch(Predicate<? super T> predicate)
Returns whether no elements of this
ArangoIterable match the provided predicate. |
forEach, spliterator
ArangoIterator<T> iterator()
void foreach(Consumer<? super T> action)
ArangoIterable
action
- a action to perform on the elements<R> ArangoIterable<R> map(Function<? super T,? extends R> mapper)
ArangoIterable
consisting of the results of applying the given function to the elements of this
ArangoIterable
.mapper
- a function to apply to each elementArangoIterable
ArangoIterable<T> filter(Predicate<? super T> predicate)
ArangoIterable
consisting of the elements of this ArangoIterable
that match the given
predicate.predicate
- a predicate to apply to each element to determine if it should be includedArangoIterable
T first()
null
if no element exists.null
long count()
ArangoIterable
.boolean anyMatch(Predicate<? super T> predicate)
ArangoIterable
match the provided predicate.predicate
- a predicate to apply to elements of this ArangoIterable
true
if any elements of the ArangoIterable
match the provided predicate, otherwise
false
boolean allMatch(Predicate<? super T> predicate)
ArangoIterable
match the provided predicate.predicate
- a predicate to apply to elements of this ArangoIterable
true
if all elements of the ArangoIterable
match the provided predicate, otherwise
false
boolean noneMatch(Predicate<? super T> predicate)
ArangoIterable
match the provided predicate.predicate
- a predicate to apply to elements of this ArangoIterable
true
if no elements of the ArangoIterable
match the provided predicate, otherwise
false
<R extends Collection<? super T>> R collectInto(R target)
ArangoIterable
and adds each to the given target.target
- the collection to insert intoCopyright © 2016–2019 ArangoDB GmbH. All rights reserved.