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)
Deprecated.
Use
Traverser.breadthFirst(N) instead, which has the
same behavior. |
static <T> FluentIterable<T> |
FluentIterable.concat(Iterable<? extends Iterable<? extends T>> inputs)
Returns a fluent iterable that combines several iterables.
|
static <T> FluentIterable<T> |
FluentIterable.concat(Iterable<? extends T>... inputs)
Returns a fluent iterable that combines several iterables.
|
static <T> FluentIterable<T> |
FluentIterable.concat(Iterable<? extends T> a,
Iterable<? extends T> b)
Returns a fluent iterable that combines two iterables.
|
static <T> FluentIterable<T> |
FluentIterable.concat(Iterable<? extends T> a,
Iterable<? extends T> b,
Iterable<? extends T> c)
Returns a fluent iterable that combines three iterables.
|
static <T> FluentIterable<T> |
FluentIterable.concat(Iterable<? extends T> a,
Iterable<? extends T> b,
Iterable<? extends T> c,
Iterable<? extends T> d)
Returns a fluent iterable that combines four iterables.
|
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(E[] elements)
Returns a fluent iterable containing
elements in the specified order. |
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)
Deprecated.
|
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()
Returns a fluent iterable containing no elements.
|
static <E> FluentIterable<E> |
FluentIterable.of(E element,
E... elements)
Returns a fluent iterable containing the specified elements in order.
|
FluentIterable<T> |
TreeTraverser.postOrderTraversal(T root)
Deprecated.
Use
Traverser.depthFirstPostOrder(N) instead, which
has the same behavior. |
FluentIterable<T> |
TreeTraverser.preOrderTraversal(T root)
Deprecated.
Use
Traverser.depthFirstPreOrder(N) instead, which has
the same behavior. |
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–2018. All rights reserved.