Uses of Class
org.apache.commons.collections4.FluentIterable
Package
Description
Interfaces and utilities shared across all packages.
-
Uses of FluentIterable in org.apache.commons.collections4
Modifier and TypeMethodDescriptionReturns a new FluentIterable whose iterator will first traverse the elements of the current iterable, followed by the provided elements.Returns a new FluentIterable whose iterator will first traverse the elements of the current iterable, followed by the elements of the provided iterable.Returns a new FluentIterable whose iterator will traverse the elements of the current and provided iterable in natural order.FluentIterable.collate
(Iterable<? extends E> other, Comparator<? super E> comparator) Returns a new FluentIterable whose iterator will traverse the elements of the current and provided iterable according to the ordering defined by a comparator.static <T> FluentIterable
<T> FluentIterable.empty()
Creates a new empty FluentIterable.FluentIterable.eval()
This method fully traverses an iterator of this iterable and returns a new iterable with the same contents, but without any reference to the originating iterables and/or iterators.Returns a new FluentIterable whose iterator will only return elements from this iterable matching the provided predicate.FluentIterable.limit
(long maxSize) Returns a new FluentIterable whose iterator will return at most the provided maximum number of elements from this iterable.FluentIterable.loop()
Returns a new FluentIterable whose iterator will loop infinitely over the elements from this iterable.static <T> FluentIterable
<T> Constructs a new FluentIterable from the provided iterable.static <T> FluentIterable
<T> FluentIterable.of
(T singleton) Creates a new FluentIterable of the single provided element.static <T> FluentIterable
<T> FluentIterable.of
(T... elements) Creates a new FluentIterable from the provided elements.FluentIterable.reverse()
Returns a new FluentIterable whose iterator will traverse the elements from this iterable in reverse order.FluentIterable.skip
(long elementsToSkip) Returns a new FluentIterable whose iterator will skip the first N elements from this iterable.<O> FluentIterable
<O> FluentIterable.transform
(Transformer<? super E, ? extends O> transformer) Returns a new FluentIterable whose iterator will return all elements of this iterable transformed by the provided transformer.FluentIterable.unique()
Returns a new FluentIterable whose iterator will return a unique view of this iterable.FluentIterable.unmodifiable()
Returns a new FluentIterable whose iterator will return an unmodifiable view of this iterable.Returns a new FluentIterable whose iterator will traverse the elements of this iterable and the other iterable in alternating order.Returns a new FluentIterable whose iterator will traverse the elements of this iterable and the other iterables in alternating order.