| Package | Description |
|---|---|
| org.calrissian.mango.collect |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractCloseableIterable<T>
This class represents a skeletal implementation of a
CloseableIterable. |
class |
FluentCloseableIterable<T>
A class to provide the same basic functionality as
FluentIterable to work
with CloseableIterables |
| Modifier and Type | Method and Description |
|---|---|
static <T> CloseableIterable<T> |
CloseableIterables.autoClose(CloseableIterable<? extends T> iterable)
Autoclose the iterator when exhausted or if an exception is thrown.
|
static <T> CloseableIterable<T> |
CloseableIterables.chain(CloseableIterable<? extends T>... iterables)
Combines multiple closeable iterables into a single closeable iterable.
|
static <T> CloseableIterable<T> |
CloseableIterables.chain(Iterable<? extends CloseableIterable<? extends T>> iterables)
Combines multiple closeable iterables into a single closeable iterable.
|
static <T> CloseableIterable<T> |
CloseableIterables.concat(CloseableIterable<? extends Iterable<? extends T>> inputs)
Combines multiple iterables into a single closeable iterable.
|
static <T> CloseableIterable<T> |
CloseableIterables.distinct(CloseableIterable<T> iterable)
If we can assume the closeable iterable is sorted, return the distinct elements.
|
static <T> CloseableIterable<T> |
CloseableIterables.filter(CloseableIterable<T> iterable,
Predicate<? super T> filter)
Returns the elements of
unfiltered that satisfy a predicate. |
static <T> CloseableIterable<T> |
CloseableIterables.limit(CloseableIterable<T> iterable,
int limitSize)
Creates a closeable iterable with the first
limitSize elements of the given
closeable iterable. |
static <F,T> CloseableIterable<T> |
CloseableIterables.transform(CloseableIterable<F> iterable,
Function<? super F,? extends T> function)
Returns an iterable that applies
function to each element of fromIterable. |
static <T> CloseableIterable<T> |
CloseableIterables.wrap(Iterable<T> iterable)
Creates a
CloseableIterable from a standard iterable |
| Modifier and Type | Method and Description |
|---|---|
static <T> CloseableIterable<T> |
CloseableIterables.autoClose(CloseableIterable<? extends T> iterable)
Autoclose the iterator when exhausted or if an exception is thrown.
|
static <T> CloseableIterable<T> |
CloseableIterables.chain(CloseableIterable<? extends T>... iterables)
Combines multiple closeable iterables into a single closeable iterable.
|
static <T> CloseableIterable<T> |
CloseableIterables.concat(CloseableIterable<? extends Iterable<? extends T>> inputs)
Combines multiple iterables into a single closeable iterable.
|
static <T> CloseableIterable<T> |
CloseableIterables.distinct(CloseableIterable<T> iterable)
If we can assume the closeable iterable is sorted, return the distinct elements.
|
static <T> CloseableIterable<T> |
CloseableIterables.filter(CloseableIterable<T> iterable,
Predicate<? super T> filter)
Returns the elements of
unfiltered that satisfy a predicate. |
static <E> FluentCloseableIterable<E> |
FluentCloseableIterable.from(CloseableIterable<E> iterable)
The rest of the methods are taken from guava directly
|
static <T> CloseableIterable<T> |
CloseableIterables.limit(CloseableIterable<T> iterable,
int limitSize)
Creates a closeable iterable with the first
limitSize elements of the given
closeable iterable. |
static <F,T> CloseableIterable<T> |
CloseableIterables.transform(CloseableIterable<F> iterable,
Function<? super F,? extends T> function)
Returns an iterable that applies
function to each element of fromIterable. |
| Modifier and Type | Method and Description |
|---|---|
static <T> CloseableIterable<T> |
CloseableIterables.chain(Iterable<? extends CloseableIterable<? extends T>> iterables)
Combines multiple closeable iterables into a single closeable iterable.
|
Copyright © 2014 Calrissian. All rights reserved.