public abstract class AbstractArangoIterable<T> extends Object implements ArangoIterable<T>
| Constructor and Description |
|---|
AbstractArangoIterable() |
| 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. |
<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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforeach, iteratorforEach, spliteratorpublic <R> ArangoIterable<R> map(Function<? super T,? extends R> mapper)
ArangoIterableArangoIterable consisting of the results of applying the given function to the elements of this
ArangoIterable.map in interface ArangoIterable<T>mapper - a function to apply to each elementArangoIterablepublic ArangoIterable<T> filter(Predicate<? super T> predicate)
ArangoIterableArangoIterable consisting of the elements of this ArangoIterable that match the given
predicate.filter in interface ArangoIterable<T>predicate - a predicate to apply to each element to determine if it should be includedArangoIterablepublic T first()
ArangoIterablenull if no element exists.first in interface ArangoIterable<T>nullpublic long count()
ArangoIterableArangoIterable.count in interface ArangoIterable<T>public boolean anyMatch(Predicate<? super T> predicate)
ArangoIterableArangoIterable match the provided predicate.anyMatch in interface ArangoIterable<T>predicate - a predicate to apply to elements of this ArangoIterabletrue if any elements of the ArangoIterable match the provided predicate, otherwise
falsepublic boolean allMatch(Predicate<? super T> predicate)
ArangoIterableArangoIterable match the provided predicate.allMatch in interface ArangoIterable<T>predicate - a predicate to apply to elements of this ArangoIterabletrue if all elements of the ArangoIterable match the provided predicate, otherwise
falsepublic boolean noneMatch(Predicate<? super T> predicate)
ArangoIterableArangoIterable match the provided predicate.noneMatch in interface ArangoIterable<T>predicate - a predicate to apply to elements of this ArangoIterabletrue if no elements of the ArangoIterable match the provided predicate, otherwise
falsepublic <R extends Collection<? super T>> R collectInto(R target)
ArangoIterableArangoIterable and adds each to the given target.collectInto in interface ArangoIterable<T>target - the collection to insert intoCopyright © 2016–2021 ArangoDB GmbH. All rights reserved.