Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and
other utilities for working with collections.
|
Modifier and Type | Method and Description |
---|---|
FluentIterable<E> |
FluentIterable.append(E... elements)
Returns a fluent iterable whose iterators traverse first the elements of this fluent iterable,
followed by
elements . |
FluentIterable<E> |
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<T> |
TreeTraverser.breadthFirstTraversal(T root)
Returns an unmodifiable iterable over the nodes in a tree structure, using breadth-first
traversal.
|
FluentIterable<E> |
FluentIterable.cycle()
Returns a fluent iterable whose
Iterator cycles indefinitely over the elements of
this fluent iterable. |
<T> FluentIterable<T> |
FluentIterable.filter(Class<T> type)
Returns the elements from this fluent iterable that are instances of class
type . |
FluentIterable<E> |
FluentIterable.filter(Predicate<? super E> predicate)
Returns the elements from this fluent iterable that satisfy a predicate.
|
static <E> FluentIterable<E> |
FluentIterable.from(FluentIterable<E> iterable)
Deprecated.
instances of
FluentIterable don't need to be converted to
FluentIterable |
static <E> FluentIterable<E> |
FluentIterable.from(Iterable<E> iterable)
Returns a fluent iterable that wraps
iterable , or iterable itself if it
is already a FluentIterable . |
FluentIterable<T> |
BinaryTreeTraverser.inOrderTraversal(T root) |
FluentIterable<E> |
FluentIterable.limit(int maxSize)
Creates a fluent iterable with the first
size elements of this
fluent iterable. |
static <E> FluentIterable<E> |
FluentIterable.of(E[] elements)
Returns a fluent iterable containing
elements in the specified order. |
FluentIterable<T> |
TreeTraverser.postOrderTraversal(T root)
Returns an unmodifiable iterable over the nodes in a tree structure, using post-order
traversal.
|
FluentIterable<T> |
TreeTraverser.preOrderTraversal(T root)
Returns an unmodifiable iterable over the nodes in a tree structure, using pre-order
traversal.
|
FluentIterable<E> |
FluentIterable.skip(int numberToSkip)
Returns a view of this fluent iterable that skips its first
numberToSkip
elements. |
<T> FluentIterable<T> |
FluentIterable.transform(Function<? super E,T> function)
Returns a fluent iterable that applies
function to each element of this
fluent iterable. |
<T> FluentIterable<T> |
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. |
Modifier and Type | Method and Description |
---|---|
static <E> FluentIterable<E> |
FluentIterable.from(FluentIterable<E> iterable)
Deprecated.
instances of
FluentIterable don't need to be converted to
FluentIterable |
Copyright © 2010-2015. All Rights Reserved.