| Modifier and Type | Method and Description |
|---|---|
static <R,T> Provider<R> |
Compositions.compose(Delegate<R,T> f,
Provider<T> g)
Composes a delegate with a provider (delegate ° provider).
|
static <R,T> Provider<R> |
Dispatching.curry(Delegate<R,T> delegate,
T value)
Partial application of the parameter to a delegate.
|
static <R> Provider<R> |
Spies.monitor(Provider<R> provider,
AtomicLong calls)
Monitors calls to a provider.
|
static <T> Provider<Maybe<T>> |
Dispatching.provider(Iterator<T> adaptee)
Adapts an iterator to a provider.
|
static Provider<Boolean> |
Dispatching.provider(Proposition adaptee)
Adapts a proposition to a provider.
|
static Provider<Void> |
Dispatching.provider(Runnable adaptee)
Adapts a runnable to a provider.
|
static <R> Provider<R> |
Spies.spy(Provider<R> provider,
Box<R> result)
Proxies a provider, spying for result.
|
| Modifier and Type | Method and Description |
|---|---|
static <R extends Collection<E>,E> |
Consumers.all(E[] array,
Provider<R> provider)
Yields all elements of the iterator (in a collection created by the
provider).
|
static <E,R extends Collection<E>> |
Consumers.all(Iterable<E> iterable,
Provider<R> provider)
Yields all elements of the iterator (in a collection created by the
provider).
|
static <E,R extends Collection<E>> |
Consumers.all(Iterator<E> iterator,
Provider<R> provider)
Yields all elements of the iterator (in a collection created by the
provider).
|
static <C extends Collection<E>,E> |
Multiplexing.batch(int batchSize,
E[] array,
Provider<C> channelProvider)
Demultiplexes elements from the source array into an iterator of
channels.
|
static <C extends Collection<E>,E> |
Multiplexing.batch(int batchSize,
Iterable<E> iterable,
Provider<C> channelProvider)
Demultiplexes elements from the source iterable into an iterator of
channels.
|
static <C extends Collection<E>,E> |
Multiplexing.batch(int batchSize,
Iterator<E> iterator,
Provider<C> channelProvider)
Demultiplexes elements from the source iterator into an iterator of
channels.
|
static <W extends Collection<Maybe<T>>,T> |
Windowing.centered(int windowSize,
Iterable<T> iterable,
Provider<W> provider)
Adapts an iterable to an iterator showing a sliding centered window of
the contained elements.
|
static <W extends Collection<Maybe<T>>,T> |
Windowing.centered(int windowSize,
Iterator<T> iterator,
Provider<W> provider)
Adapts an iterator to an iterator showing a sliding centered window of
the contained elements.
|
static <R,T> Provider<R> |
Compositions.compose(Delegate<R,T> f,
Provider<T> g)
Composes a delegate with a provider (delegate ° provider).
|
static <M extends Map<K,V>,K,V> |
Consumers.dict(Iterable<Pair<K,V>> iterable,
Provider<M> provider)
Yields all elements of the iterator (in a map created by the provider).
|
static <M extends Map<K,V>,K,V> |
Consumers.dict(Iterator<Pair<K,V>> iterator,
Provider<M> provider)
Yields all elements of the iterator (in a map created by the provider).
|
static <M extends Map<K,V>,K,V> |
Consumers.dict(Provider<M> provider,
Pair<K,V>... array)
Yields all elements of the iterator (in a map created by the provider).
|
static <C extends Collection<E>,E> |
Searches.find(E[] array,
Provider<C> provider,
Predicate<E> predicate)
Searches the array, adding every value matching the predicate to the
collection yielded by the passed provider.
|
static <C extends Collection<E>,E> |
Searches.find(Iterable<E> iterable,
Provider<C> provider,
Predicate<E> predicate)
Searches the iterable, adding every value matching the predicate to the
collection yielded by the passed provider.
|
static <C extends Collection<E>,E> |
Searches.find(Iterator<E> iterator,
Provider<C> provider,
Predicate<E> predicate)
Searches the iterator, consuming it, adding every value matching the
predicate to the collection yielded by the passed provider.
|
static <K> NestedMapBuilder<K> |
Maps.Nested.from(Provider<Map<K,Object>> provider) |
static <K,V> MapBuilder<K,V> |
Maps.from(Provider<Map<K,V>> provider) |
static <C extends Collection<V>,K,V> |
Groups.groupBy(Iterable<V> groupies,
Delegate<K,V> grouper,
Provider<C> collectionProvider)
Groups elements from an iterable in the key evaluated from the passed
delegate.
|
static <M extends Map<K,C>,C extends Collection<V>,K,V> |
Groups.groupBy(Iterable<V> groupies,
Delegate<K,V> grouper,
Provider<C> collectionProvider,
Provider<M> mapProvider)
Groups elements from an iterable in the key evaluated from the passed
delegate.
|
static <M extends Map<K,C>,C extends Collection<V>,K,V> |
Groups.groupBy(Iterable<V> groupies,
Delegate<K,V> grouper,
Provider<C> collectionProvider,
Provider<M> mapProvider)
Groups elements from an iterable in the key evaluated from the passed
delegate.
|
static <C extends Collection<V>,K,V> |
Groups.groupBy(Iterator<V> groupies,
Delegate<K,V> grouper,
Provider<C> collectionProvider)
Groups elements from an iterator in the key evaluated from the passed
delegate.
|
static <M extends Map<K,C>,C extends Collection<V>,K,V> |
Groups.groupBy(Iterator<V> groupies,
Delegate<K,V> grouper,
Provider<C> collectionProvider,
Provider<M> mapProvider)
Groups elements from an iterator in the key evaluated from the passed
delegate.
|
static <M extends Map<K,C>,C extends Collection<V>,K,V> |
Groups.groupBy(Iterator<V> groupies,
Delegate<K,V> grouper,
Provider<C> collectionProvider,
Provider<M> mapProvider)
Groups elements from an iterator in the key evaluated from the passed
delegate.
|
static <C extends Collection<V>,K,V> |
Groups.groupBy(V[] groupies,
Delegate<K,V> grouper,
Provider<C> collectionProvider)
Groups elements from an array in the key evaluated from the passed
delegate.
|
static <M extends Map<K,C>,C extends Collection<V>,K,V> |
Groups.groupBy(V[] groupies,
Delegate<K,V> grouper,
Provider<C> collectionProvider,
Provider<M> mapProvider)
Groups elements from an array in the key evaluated from the passed
delegate.
|
static <M extends Map<K,C>,C extends Collection<V>,K,V> |
Groups.groupBy(V[] groupies,
Delegate<K,V> grouper,
Provider<C> collectionProvider,
Provider<M> mapProvider)
Groups elements from an array in the key evaluated from the passed
delegate.
|
static <R,T> Delegate<R,T> |
Dispatching.ignore(Provider<R> provider,
Class<T> ignored)
Adapts a provider to a delegate by ignoring the passed parameter.
|
static <M extends Map<K,V>,K,V> |
Groups.indexBy(Iterable<V> groupies,
Delegate<K,V> indexer,
Provider<M> mapProvider)
Indexes elements from the iterable using passed delegate.
|
static <M extends Map<K,V>,K,V> |
Groups.indexBy(Iterator<V> groupies,
Delegate<K,V> indexer,
Provider<M> mapProvider)
Indexes elements from the iterator using passed delegate.
|
static <M extends Map<K,V>,K,V> |
Groups.indexBy(V[] groupies,
Delegate<K,V> indexer,
Provider<M> mapProvider)
Indexes elements from the array using passed delegate.
|
static <R> Provider<R> |
Spies.monitor(Provider<R> provider,
AtomicLong calls)
Monitors calls to a provider.
|
static <C extends Collection<T>,T> |
Groups.partition(Iterable<T> values,
Predicate<T> partitioner,
Provider<C> collectionsProvider)
Partitions elements from the iterable into two collections containing
elements that match the predicate (left side collection) and elements
that don't (right side collection).
|
static <CA extends Collection<T>,CR extends Collection<T>,T> |
Groups.partition(Iterable<T> values,
Predicate<T> partitioner,
Provider<CA> acceptedCollectionProvider,
Provider<CR> refusedCollectionProvider)
Partitions elements from the iterable into two collections containing
elements that match the predicate (left side collection) and elements
that don't (right side collection).
|
static <CA extends Collection<T>,CR extends Collection<T>,T> |
Groups.partition(Iterable<T> values,
Predicate<T> partitioner,
Provider<CA> acceptedCollectionProvider,
Provider<CR> refusedCollectionProvider)
Partitions elements from the iterable into two collections containing
elements that match the predicate (left side collection) and elements
that don't (right side collection).
|
static <C extends Collection<T>,T> |
Groups.partition(Iterator<T> values,
Predicate<T> partitioner,
Provider<C> collectionsProvider)
Partitions elements from the iterator into two collections containing
elements that match the predicate (left side collection) and elements
that don't (right side collection).
|
static <CA extends Collection<T>,CR extends Collection<T>,T> |
Groups.partition(Iterator<T> values,
Predicate<T> partitioner,
Provider<CA> acceptedCollectionProvider,
Provider<CR> refusedCollectionProvider)
Partitions elements from the iterator into two collections containing
elements that match the predicate (left side collection) and elements
that don't (right side collection).
|
static <CA extends Collection<T>,CR extends Collection<T>,T> |
Groups.partition(Iterator<T> values,
Predicate<T> partitioner,
Provider<CA> acceptedCollectionProvider,
Provider<CR> refusedCollectionProvider)
Partitions elements from the iterator into two collections containing
elements that match the predicate (left side collection) and elements
that don't (right side collection).
|
static <C extends Collection<T>,T> |
Groups.partition(T[] values,
Predicate<T> partitioner,
Provider<C> collectionsProvider)
Partitions elements from the array into two collections containing
elements that match the predicate (left side collection) and elements
that don't (right side collection).
|
static <CA extends Collection<T>,CR extends Collection<T>,T> |
Groups.partition(T[] values,
Predicate<T> partitioner,
Provider<CA> acceptedCollectionProvider,
Provider<CR> refusedCollectionProvider)
Partitions elements from the array into two collections containing
elements that match the predicate (left side collection) and elements
that don't (right side collection).
|
static <CA extends Collection<T>,CR extends Collection<T>,T> |
Groups.partition(T[] values,
Predicate<T> partitioner,
Provider<CA> acceptedCollectionProvider,
Provider<CR> refusedCollectionProvider)
Partitions elements from the array into two collections containing
elements that match the predicate (left side collection) and elements
that don't (right side collection).
|
static Proposition |
Dispatching.proposition(Provider<Boolean> provider)
Adapts a provider to a proposition.
|
static <T> Runnable |
Dispatching.runnable(Provider<T> provider)
Adapts a provider to a runnable.
|
static <C extends Collection<E>,E> |
Searches.search(E[] array,
Provider<C> provider,
Predicate<E> predicate)
Searches the array, adding every value matching the predicate to the
collection yielded by the passed provider.
|
static <C extends Collection<E>,E> |
Searches.search(Iterable<E> iterable,
Provider<C> provider,
Predicate<E> predicate)
Searches the iterable, adding every value matching the predicate to the
collection yielded by the passed provider.
|
static <C extends Collection<E>,E> |
Searches.search(Iterator<E> iterator,
Provider<C> provider,
Predicate<E> predicate)
Searches the iterator, consuming it, adding every value matching the
predicate to the collection yielded by the passed provider.
|
static <R> Provider<R> |
Spies.spy(Provider<R> provider,
Box<R> result)
Proxies a provider, spying for result.
|
static <C extends Collection<E>,E> |
Multiplexing.unchain(int channelSize,
Iterable<E> iterable,
Provider<C> channelProvider)
Demultiplexes elements from the source iterable into an iterator of
channels.
|
static <C extends Collection<E>,E> |
Multiplexing.unchain(int channelSize,
Iterator<E> iterator,
Provider<C> channelProvider)
Demultiplexes elements from the source iterator into an iterator of
channels.
|
static <C extends Collection<E>,E> |
Multiplexing.unchain(int channelSize,
Provider<C> channelProvider,
E... array)
Demultiplexes elements from the source array into an iterator of
channels.
|
static <C extends Collection<Maybe<E>>,E> |
Multiplexing.unchainWithExactChannelSize(int channelSize,
Iterable<E> iterable,
Provider<C> channelProvider)
Demultiplexes elements from the source array into an iterator of
channels.
|
static <C extends Collection<Maybe<E>>,E> |
Multiplexing.unchainWithExactChannelSize(int channelSize,
Iterator<E> iterator,
Provider<C> channelProvider)
Demultiplexes elements from the source array into an iterator of
channels.
|
static <C extends Collection<Maybe<E>>,E> |
Multiplexing.unchainWithExactChannelSize(int channelSize,
Provider<C> channelProvider,
E... array)
Demultiplexes elements from the source array into an iterator of
channels.
|
static <W extends Collection<T>,T> |
Windowing.window(int windowSize,
Iterable<T> iterable,
Provider<W> provider)
Adapts an iterable to an iterator showing a sliding window of the
contained elements.
|
static <W extends Collection<T>,T> |
Windowing.window(int windowSize,
Iterator<T> iterator,
Provider<W> provider)
Adapts an iterator to an iterator showing a sliding window of the
contained elements.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayListFactory<E>
Creates an empty ArrayList.
|
class |
HashMapFactory<K,V>
Creates an empty HashMap.
|
class |
HashSetFactory<E>
Creates an empty HashSet.
|
class |
LinkedHashMapFactory<K,V>
Creates an empty LinkedHashMap.
|
class |
LinkedHashSetFactory<E>
Creates an empty LinkedHashSet.
|
class |
LinkedListFactory<E>
Creates an empty LinkedList.
|
class |
TreeMapFactory<K,V>
Creates an empty TreeMap.
|
class |
TreeSetFactory<E>
Creates an empty TreeSet.
|
| Constructor and Description |
|---|
NestedMapBuilder(Provider<Map<K,Object>> provider) |
| Constructor and Description |
|---|
ConsumeIntoCollection(Provider<R> provider) |
ConsumeIntoMap(Provider<M> provider) |
| Modifier and Type | Class and Description |
|---|---|
class |
TransformingProvider<R,T>
Composes a delegate with a provider (delegate ° provider).
|
| Constructor and Description |
|---|
TransformingProvider(Delegate<R,T> transformer,
Provider<T> provider) |
| Modifier and Type | Class and Description |
|---|---|
class |
Binder<R,T>
Unary to nullary delegate adapter.
|
class |
IteratingProvider<T>
Adapts an
Iterator<T> to a Provider<Maybe<T>>. |
class |
PropositionToProvider
Adapts a proposition as a provider with Boolean result type.
|
class |
RunnableToProvider
Adapts a runnable to a provider.
|
| Constructor and Description |
|---|
IgnoreParameter(Provider<R> adaptee) |
ProviderToProposition(Provider<Boolean> adaptee) |
ProviderToRunnable(Provider<?> adaptee) |
| Modifier and Type | Class and Description |
|---|---|
class |
ConstantProvider<T>
Constantly returns a value.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CapturingProvider<R>
Proxies a provider capturing result.
|
class |
MonitoringProvider<R>
Proxies a provider monitoring its calls.
|
| Constructor and Description |
|---|
CapturingProvider(Provider<R> nested,
Box<R> result) |
MonitoringProvider(Provider<R> nested,
AtomicLong calls) |
| Constructor and Description |
|---|
GroupBy(Delegate<K,V> grouper,
Provider<C> collectionProvider,
Provider<M> mapProvider) |
GroupBy(Delegate<K,V> grouper,
Provider<C> collectionProvider,
Provider<M> mapProvider) |
IndexBy(Delegate<K,V> grouper,
Provider<M> mapProvider) |
PartitionBy(Predicate<T> partitioner,
Provider<CA> acceptedCollectionProvider,
Provider<CR> rejectedCollectionProvider) |
PartitionBy(Predicate<T> partitioner,
Provider<CA> acceptedCollectionProvider,
Provider<CR> rejectedCollectionProvider) |
| Constructor and Description |
|---|
BatchingIterator(int batchSize,
Iterator<T> iterator,
Provider<C> channelProvider) |
UnchainIterator(Provider<Maybe<Integer>> channelsSizesProvider,
Iterator<T> iterator,
Provider<C> channelProvider) |
UnchainIterator(Provider<Maybe<Integer>> channelsSizesProvider,
Iterator<T> iterator,
Provider<C> channelProvider) |
UnchainWithExactChannelSizeIterator(Provider<Maybe<Integer>> channelsSizesProvider,
Iterator<T> iterator,
Provider<C> channelProvider) |
UnchainWithExactChannelSizeIterator(Provider<Maybe<Integer>> channelsSizesProvider,
Iterator<T> iterator,
Provider<C> channelProvider) |
| Modifier and Type | Method and Description |
|---|---|
<T> Either<T,E> |
Maybe.either(Provider<T> nothing) |
| Constructor and Description |
|---|
MaybeToEither(Provider<L> leftTypeProvider) |
| Modifier and Type | Class and Description |
|---|---|
class |
TimeStrategyToDateProvider |
class |
TimeStrategyToMillisProvider |
| Constructor and Description |
|---|
CenteredWindowIterator(Iterator<T> iter,
int windowSize,
Provider<W> provider) |
PreciseWindowIterator(Iterator<T> iter,
int windowSize,
Provider<W> provider) |
Copyright © 2013. All Rights Reserved.