public class Iterables2 extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> Iterable<T> |
distinct(Iterable<T> iterable)
If we can assume the iterable is sorted, return the distinct elements.
|
static <T> Iterable<T> |
drainingIterable(Queue<T> queue)
Deprecated.
use
Iterables.consumingIterable instead |
static <T> Iterable<T> |
emptyIterable()
Deprecated.
use
Collections.emptySet() instead |
static <T> Iterable<T> |
simpleIterable(Iterable<T> iterable)
Wraps any iterable into a generic iterable object.
|
static <T> Iterable<T> |
singleton(T data)
Deprecated.
use
Collections.singleton() instead |
public static <T> Iterable<T> simpleIterable(Iterable<T> iterable)
@Deprecated public static <T> Iterable<T> emptyIterable()
Collections.emptySet() instead@Deprecated public static <T> Iterable<T> singleton(T data)
Collections.singleton() insteadpublic static <T> Iterable<T> distinct(Iterable<T> iterable)
@Deprecated public static <T> Iterable<T> drainingIterable(Queue<T> queue)
Iterables.consumingIterable insteadCopyright © 2014 Calrissian. All rights reserved.