Example usage for Java com.google.common.collect FluentIterable fields, constructors, methods, implement or subclass
The text is from its open source code.
FluentIterable() Constructor for use by subclasses. |
boolean | allMatch(Predicate super E> predicate) Returns true if every element in this fluent iterable satisfies the predicate. |
boolean | anyMatch(Predicate super E> predicate) Returns true if any element in this fluent iterable satisfies the predicate. |
FluentIterable | append(Iterable extends E> other) Returns a fluent iterable whose iterators traverse first the elements of this fluent iterable, followed by those of other . |
FluentIterable | append(E... elements) Returns a fluent iterable whose iterators traverse first the elements of this fluent iterable, followed by elements . |
boolean | contains(@Nullable Object target) Returns true if this fluent iterable contains any object for which equals(target) is true. |
FluentIterable | filter(Predicate super E> predicate) Returns the elements from this fluent iterable that satisfy a predicate. |
FluentIterable | filter(Class Returns the elements from this fluent iterable that are instances of class type . |
Optional | first() Returns an Optional containing the first element in this fluent iterable. |
Optional | firstMatch(Predicate super E> predicate) Returns an Optional containing the first element in this fluent iterable that satisfies the given predicate, if such an element exists. |
FluentIterable | from(final Iterable Returns a fluent iterable that wraps iterable , or iterable itself if it is already a FluentIterable . |
FluentIterable | from(E[] elements) Returns a fluent iterable containing elements in the specified order. |
FluentIterable | from(FluentIterable Construct a fluent iterable from another fluent iterable. |
E | get(int position) Returns the element at the specified position in this fluent iterable. |
ImmutableListMultimap | index(Function super E, K> keyFunction) Creates an index ImmutableListMultimap that contains the results of applying a specified function to each item in this FluentIterable of values. |
boolean | isEmpty() Determines whether this fluent iterable is empty. |
Iterator | iterator() Returns an iterator over elements of type T . |
FluentIterable | limit(int maxSize) Creates a fluent iterable with the first size elements of this fluent iterable. |
FluentIterable | of(E[] elements) Returns a fluent iterable containing elements in the specified order. |
int | size() Returns the number of elements in this fluent iterable. |
FluentIterable | skip(int numberToSkip) Returns a view of this fluent iterable that skips its first numberToSkip elements. |
E[] | toArray(Class Returns an array containing all of the elements from this fluent iterable in iteration order. |
ImmutableList | toList() Returns an ImmutableList containing all of the elements from this fluent iterable in proper sequence. |
ImmutableSet | toSet() Returns an ImmutableSet containing all of the elements from this fluent iterable with duplicates removed. |
ImmutableList | toSortedList(Comparator super E> comparator) Returns an ImmutableList containing all of the elements from this FluentIterable in the order specified by comparator . |
String | toString() Returns a string representation of this fluent iterable, with the format [e1, e2, ..., en] . |
FluentIterable | transform(Function super E, T> function) Returns a fluent iterable that applies function to each element of this fluent iterable. |
FluentIterable | transformAndConcat(Function super E, ? extends Iterable extends T>> function) Applies function to each element of this fluent iterable and returns a fluent iterable with the concatenated combination of results. |