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, wait
foreach, iterator
forEach, spliterator
public <R> ArangoIterable<R> map(Function<? super T,? extends R> mapper)
ArangoIterable
ArangoIterable
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 elementArangoIterable
public ArangoIterable<T> filter(Predicate<? super T> predicate)
ArangoIterable
ArangoIterable
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 includedArangoIterable
public T first()
ArangoIterable
null
if no element exists.first
in interface ArangoIterable<T>
null
public long count()
ArangoIterable
ArangoIterable
.count
in interface ArangoIterable<T>
public boolean anyMatch(Predicate<? super T> predicate)
ArangoIterable
ArangoIterable
match the provided predicate.anyMatch
in interface ArangoIterable<T>
predicate
- a predicate to apply to elements of this ArangoIterable
true
if any elements of the ArangoIterable
match the provided predicate, otherwise
false
public boolean allMatch(Predicate<? super T> predicate)
ArangoIterable
ArangoIterable
match the provided predicate.allMatch
in interface ArangoIterable<T>
predicate
- a predicate to apply to elements of this ArangoIterable
true
if all elements of the ArangoIterable
match the provided predicate, otherwise
false
public boolean noneMatch(Predicate<? super T> predicate)
ArangoIterable
ArangoIterable
match the provided predicate.noneMatch
in interface ArangoIterable<T>
predicate
- a predicate to apply to elements of this ArangoIterable
true
if no elements of the ArangoIterable
match the provided predicate, otherwise
false
public <R extends Collection<? super T>> R collectInto(R target)
ArangoIterable
ArangoIterable
and adds each to the given target.collectInto
in interface ArangoIterable<T>
target
- the collection to insert intoCopyright © 2016–2020 ArangoDB GmbH. All rights reserved.