Home | History | Annotate | Download | only in collect

Lines Matching defs:FluentIterable

40  * {@code FluentIterable} provides a rich interface for manipulating {@code Iterable} instances in a
41 * chained fashion. A {@code FluentIterable} can be created from an {@code Iterable}, or from a set
42 * of elements. The following types of methods are provided on {@code FluentIterable}:
44 * <li>chained methods which return a new {@code FluentIterable} based in some way on the contents
46 * <li>conversion methods which copy the {@code FluentIterable}'s contents into a new collection or
50 * <li>query methods which answer questions about the {@code FluentIterable}'s contents (for example
58 * FluentIterable
65 * <p>Anything which can be done using {@code FluentIterable} could be done in a different fashion
66 * (often with {@link Iterables}), however the use of {@code FluentIterable} makes many sets of
73 public abstract class FluentIterable<E> implements Iterable<E> {
75 // checks on the _original_ iterable when FluentIterable.from is used.
79 protected FluentIterable() {
83 FluentIterable(Iterable<E> iterable) {
89 * is already a {@code FluentIterable}.
91 public static <E> FluentIterable<E> from(final Iterable<E> iterable) {
92 return (iterable instanceof FluentIterable) ? (FluentIterable<E>) iterable
93 : new FluentIterable<E>(iterable) {
104 * {@code FluentIterable} has obviated the need to explicitly convert to a {@code FluentIterable}.
106 * @deprecated instances of {@code FluentIterable} don't need to be converted to
107 * {@code FluentIterable}
110 public static <E> FluentIterable<E> from(FluentIterable<E> iterable) {
120 public static <E> FluentIterable<E> of(E[] elements) {
162 public final FluentIterable<E> cycle() {
177 public final FluentIterable<E> append(Iterable<? extends E> other) {
189 public final FluentIterable<E> append(E... elements) {
198 public final FluentIterable<E> filter(Predicate<? super E> predicate) {
209 public final <T> FluentIterable<T> filter(Class<T> type) {
247 public final <T> FluentIterable<T> transform(Function<? super E, T> function) {
262 public <T> FluentIterable<T> transformAndConcat(
340 public final FluentIterable<E> skip(int numberToSkip) {
355 public final FluentIterable<E> limit(int size) {
378 * FluentIterable} in the order specified by {@code comparator}. To produce an {@code
401 * FluentIterable} in the order specified by {@code comparator}, with duplicates (determined by
414 * Returns an immutable map for which the elements of this {@code FluentIterable} are the keys in
429 * specified function to each item in this {@code FluentIterable} of values. Each element of this
451 * {@code FluentIterable} in the given order, and each key is the product of invoking a supplied
524 implements Function<Iterable<E>, FluentIterable<E>> {
526 public FluentIterable<E> apply(Iterable<E> fromObject) {
527 return FluentIterable.from(fromObject);