Class AbstractC8Iterable<T>

    • Constructor Detail

      • AbstractC8Iterable

        public AbstractC8Iterable()
    • Method Detail

      • map

        public <R> C8Iterable<R> map​(Function<? super T,​? extends R> mapper)
        Description copied from interface: C8Iterable
        Returns a ArangoIterable consisting of the results of applying the given function to the elements of this ArangoIterable.
        Specified by:
        map in interface C8Iterable<T>
        Parameters:
        mapper - a function to apply to each element
        Returns:
        the new ArangoIterable
      • filter

        public C8Iterable<T> filter​(Predicate<? super T> predicate)
        Description copied from interface: C8Iterable
        Returns a ArangoIterable consisting of the elements of this ArangoIterable that match the given predicate.
        Specified by:
        filter in interface C8Iterable<T>
        Parameters:
        predicate - a predicate to apply to each element to determine if it should be included
        Returns:
        the new ArangoIterable
      • first

        public T first()
        Description copied from interface: C8Iterable
        Returns the first element or null if no element exists.
        Specified by:
        first in interface C8Iterable<T>
        Returns:
        first element or null
      • count

        public long count()
        Description copied from interface: C8Iterable
        Returns the count of elements of this ArangoIterable.
        Specified by:
        count in interface C8Iterable<T>
        Returns:
        the count of elements
      • anyMatch

        public boolean anyMatch​(Predicate<? super T> predicate)
        Description copied from interface: C8Iterable
        Returns whether any elements of this ArangoIterable match the provided predicate.
        Specified by:
        anyMatch in interface C8Iterable<T>
        Parameters:
        predicate - a predicate to apply to elements of this ArangoIterable
        Returns:
        true if any elements of the ArangoIterable match the provided predicate, otherwise false
      • allMatch

        public boolean allMatch​(Predicate<? super T> predicate)
        Description copied from interface: C8Iterable
        Returns whether all elements of this ArangoIterable match the provided predicate.
        Specified by:
        allMatch in interface C8Iterable<T>
        Parameters:
        predicate - a predicate to apply to elements of this ArangoIterable
        Returns:
        true if all elements of the ArangoIterable match the provided predicate, otherwise false
      • noneMatch

        public boolean noneMatch​(Predicate<? super T> predicate)
        Description copied from interface: C8Iterable
        Returns whether no elements of this ArangoIterable match the provided predicate.
        Specified by:
        noneMatch in interface C8Iterable<T>
        Parameters:
        predicate - a predicate to apply to elements of this ArangoIterable
        Returns:
        true if no elements of the ArangoIterable match the provided predicate, otherwise false
      • collectInto

        public <R extends Collection<? super T>> R collectInto​(R target)
        Description copied from interface: C8Iterable
        Iterates over all elements of this ArangoIterable and adds each to the given target.
        Specified by:
        collectInto in interface C8Iterable<T>
        Parameters:
        target - the collection to insert into
        Returns:
        the filled target