| Modifier and Type | Field and Description |
|---|---|
CachedEnumerable<E> |
CachedEnumerableState.cachedSource
CachedEnumerable caching the instances of source. |
| Modifier and Type | Field and Description |
|---|---|
Consumer<CachedEnumerable<E>> |
CachedEnumerableState.callback
Method to call when the cache limit is reached.
|
| Modifier and Type | Method and Description |
|---|---|
default CachedEnumerable<E> |
Enumerable.cached()
Returns a
CachedEnumerable that caches the enumerated elements. |
default CachedEnumerable<E> |
Enumerable.cached(long limit,
Consumer<CachedEnumerable<E>> onLimitCallback)
Returns a
CachedEnumerable that caches the enumerated elements
up to a given limit. |
| Modifier and Type | Method and Description |
|---|---|
default CachedEnumerable<E> |
Enumerable.cached(long limit,
Consumer<CachedEnumerable<E>> onLimitCallback)
Returns a
CachedEnumerable that caches the enumerated elements
up to a given limit. |
| Constructor and Description |
|---|
CachedEnumerableState(Enumerable<E> source,
CachedEnumerable<E> cachedSource,
long limit,
Consumer<CachedEnumerable<E>> callback)
Constructs a
CachedEnumerableState containing the given
source, cache size and callback. |
| Constructor and Description |
|---|
CachedEnumerable(Enumerable<E> source,
long limit,
Consumer<CachedEnumerable<E>> onLimitCallback)
Constructs a
CachedEnumerable instance that caches the elements
of the given source Enumerable up to the given limit. |
CachedEnumerableState(Enumerable<E> source,
CachedEnumerable<E> cachedSource,
long limit,
Consumer<CachedEnumerable<E>> callback)
Constructs a
CachedEnumerableState containing the given
source, cache size and callback. |
Copyright © 2016. All rights reserved.