- AbstractEnumerable<E> - Class in enumj
-
Abstract implementation of the Enumerable interface.
- AbstractEnumerable() - Constructor for class enumj.AbstractEnumerable
-
Constructs a new AbstractEnumerable instance.
- AbstractEnumerator<E> - Class in enumj
-
Abstract implementation of the Enumerator interface.
- AbstractEnumerator() - Constructor for class enumj.AbstractEnumerator
-
Constructs a new AbstractEnumerator instance.
- AbstractPipeMultiProcessor<T,R> - Class in enumj
-
Pipe processor that may produce multiple output elements for an input
element.
- AbstractPipeMultiProcessor(boolean, boolean) - Constructor for class enumj.AbstractPipeMultiProcessor
-
Constructs a new AbstractPipeMultiProcessor instance.
- AbstractPipeProcessor<T,R> - Class in enumj
-
Pipe processor that receives an element, processes it and returns an output.
- AbstractPipeProcessor(boolean, boolean) - Constructor for class enumj.AbstractPipeProcessor
-
Constructs a new instance of AbstractPipeProcessor.
- allMatch(Predicate<? super E>) - Method in interface enumj.Enumerator
-
Returns whether all the elements of the current enumerator match the
provided predicate.
- anyMatch(Predicate<? super E>) - Method in interface enumj.Enumerator
-
Returns whether any elements of the current enumerator match the
provided predicate.
- append(E...) - Method in interface enumj.Enumerable
-
Appends the given elements to the end of the current Enumerable.
- append(E...) - Method in interface enumj.Enumerator
-
Appends the provided elements to the end of the current enumerator.
- apply(Enumerator<T>) - Method in class enumj.PipeOperator
-
- ArrayEnumerator<E> - Class in enumj
-
Enumerator implementation for arrays.
- ArrayEnumerator(E[]) - Constructor for class enumj.ArrayEnumerator
-
Constructs an ArrayEnumerator that enumerates over the given
array.
- as(Class<T>) - Method in interface enumj.Enumerable
-
Converts the current enumerable to another type.
- as(Class<T>) - Method in interface enumj.Enumerator
-
Casts the current enumerator to an enumerator of a different parameter
type.
- asEnumerable() - Method in interface enumj.Enumerator
-
Returns a OnceEnumerable instance enumerating over the current
enumerator.
- asEnumeration() - Method in interface enumj.Enumerable
-
Returns an
Enumeration enumerating the elements of the current
Enumerable.
- asEnumeration() - Method in interface enumj.Enumerator
-
Returns an Enumeration enumerating over the current enumerator.
- asFiltered(Class<T>) - Method in interface enumj.Enumerable
-
Converts and filters the current enumerable to another type.
- asFiltered(Class<T>) - Method in interface enumj.Enumerator
-
Casts the current enumerator to a different parameter type and filters
the enumerated elements based on that type.
- asOptional() - Method in interface enumj.Enumerator
-
Returns an infinite enumerator of non-empty Optional instances
containing the current elements as long as they last or empty
Optional instances if the current enumerator has no more
elements.
- asShareable() - Method in interface enumj.Enumerator
-
Returns a ShareableEnumerator sharing the elements of the
current enumerator.
- asShareable() - Method in class enumj.ShareableEnumerator
-
- asSpliterator() - Method in interface enumj.Enumerable
-
Returns a Spliterator iterating the elements of the current
Enumerable.
- asSpliterator() - Method in interface enumj.Enumerator
-
Returns a sequential Spliterator iterating over the current
enumerator.
- asStream() - Method in interface enumj.Enumerable
-
Returns a Stream streaming the elements of the current
Enumerable.
- asStream() - Method in interface enumj.Enumerator
-
Returns a sequential Stream streaming over the current
enumerator.
- asSupplier() - Method in interface enumj.Enumerator
-
Returns a Supplier supplying the elements of the current
enumerator.
- asTolerant(Consumer<? super Exception>) - Method in interface enumj.Enumerable
-
Returns a tolerant Enumerable with 0 retries enumerating
over the elements of the current Enumerable.
- asTolerant(Consumer<? super Exception>, int) - Method in interface enumj.Enumerable
-
Returns a tolerant Enumerable enumerating over the elements
of the current Enumerable.
- asTolerant(Consumer<? super Exception>) - Method in interface enumj.Enumerator
-
Returns a fault-tolerant enumerator with no retries.
- asTolerant(Consumer<? super Exception>, int) - Method in interface enumj.Enumerator
-
Returns a fault-tolerant enumerator with retries.
- cached() - Method in interface enumj.Enumerable
-
Returns a CachedEnumerable that caches the enumerated elements.
- cached(long, Consumer<CachedEnumerable<E>>) - Method in interface enumj.Enumerable
-
Returns a CachedEnumerable that caches the enumerated elements
up to a given limit.
- CachedElementWrapper<E> - Class in enumj
-
Wrapper of cached enumerated elements.
- CachedElementWrapper(E, Supplier<Nullable<E>>, long, long, Runnable) - Constructor for class enumj.CachedElementWrapper
-
Constructs a CachedElementWrapper instance that wraps the given
element while allowing the generation of the next element up to the
given limit.
- CachedEnumerable<E> - Class in enumj
-
Enumerable that caches the elements being enumerated.
- CachedEnumerable(Enumerable<E>) - Constructor for class enumj.CachedEnumerable
-
Constructs a CachedEnumerable instance that caches the elements
of the given source Enumerable.
- CachedEnumerable(Enumerable<E>, long, Consumer<CachedEnumerable<E>>) - Constructor for class enumj.CachedEnumerable
-
Constructs a
CachedEnumerable instance that caches the elements
of the given source
Enumerable up to the given limit.
- CachedEnumerableState<E> - Class in enumj
-
Atomic composite state of CachedEnumerable.
- CachedEnumerableState(Enumerable<E>, CachedEnumerable<E>, long, Consumer<CachedEnumerable<E>>) - Constructor for class enumj.CachedEnumerableState
-
Constructs a CachedEnumerableState containing the given
source, cache size and callback.
- cachedSource - Variable in class enumj.CachedEnumerableState
-
CachedEnumerable caching the instances of source.
- CacheEnumerator<E> - Class in enumj
-
Enumerator over cached enumerated elements.
- CacheEnumerator(Optional<CachedElementWrapper<E>>) - Constructor for class enumj.CacheEnumerator
-
Constructs a CacheEnumerator encapsulating an optional
CachedElementWrapper.
- callback - Variable in class enumj.CachedEnumerableState
-
Method to call when the cache limit is reached.
- Checks - Class in enumj
-
Utility class containing check methods.
- Checks() - Constructor for class enumj.Checks
-
- ChoiceEnumerable<E> - Class in enumj
-
Enumerable that chooses among the elements of the given
Iterator instances.
- ChoiceEnumerable(Supplier<IntSupplier>, Supplier<IntUnaryOperator>, Iterable<E>, Iterable<? extends E>, List<Iterable<E>>) - Constructor for class enumj.ChoiceEnumerable
-
Constructs a ChoiceEnumerable instance.
- ChoiceEnumerator<E> - Class in enumj
-
Enumerator implementation that enumerates by choosing among the
elements of given source
Iterator instances.
- ChoiceEnumerator(IntSupplier, IntUnaryOperator, Iterator<E>, Iterator<E>, List<Iterator<E>>) - Constructor for class enumj.ChoiceEnumerator
-
- choiceOf(Supplier<IntSupplier>, Iterable<E>, Iterable<? extends E>, Iterable<? extends E>...) - Static method in interface enumj.Enumerable
-
Returns an Enumerable that chooses its elements from other
Iterable instances.
- choiceOf(Supplier<IntSupplier>, Supplier<IntUnaryOperator>, Iterable<E>, Iterable<? extends E>, Iterable<? extends E>...) - Static method in interface enumj.Enumerable
-
Returns an Enumerable that chooses its elements from other
Iterable instances.
- choiceOf(IntSupplier, Iterator<E>, Iterator<? extends E>, Iterator<? extends E>...) - Static method in interface enumj.Enumerator
-
Returns an enumerator that chooses elements from the provided iterators.
- choiceOf(IntSupplier, IntUnaryOperator, Iterator<E>, Iterator<? extends E>, Iterator<? extends E>...) - Static method in interface enumj.Enumerator
-
Returns an enumerator that chooses elements from the provided iterators.
- cleanup() - Method in class enumj.AbstractEnumerator
-
Cleans up the internals of the current enumerator when enumeration
ends.
- cleanup() - Method in class enumj.ArrayEnumerator
-
- cleanup() - Method in class enumj.CacheEnumerator
-
- cleanup() - Method in class enumj.ChoiceEnumerator
-
- cleanup() - Method in class enumj.EnumerationEnumerator
-
- cleanup() - Method in class enumj.IteratorEnumerator
-
- cleanup() - Method in class enumj.LateBindingEnumerator
-
- cleanup() - Method in class enumj.LazyEnumerator
-
- cleanup() - Method in class enumj.PipeEnumerator
-
- cleanup() - Method in class enumj.ShareableEnumerator
-
- cleanup() - Method in class enumj.SharingEnumerator
-
- cleanup() - Method in class enumj.SuppliedEnumerator
-
- cleanup() - Method in class enumj.TolerantEnumerator
-
- clear() - Method in class enumj.Nullable
-
Clear the value contained by this Nullable.
- clear() - Method in class enumj.Out
-
Empties the output parameter.
- clearOutputValue() - Method in class enumj.AbstractPipeProcessor
-
Clears the processed result after being returned by
AbstractPipeProcessor.retrieveOutputValue().
- clearOutputValue() - Method in class enumj.FilterPipeProcessor
-
- clearOutputValue() - Method in class enumj.FlatMapPipeProcessor
-
- clearOutputValue() - Method in class enumj.LimitPipeProcessor
-
- clearOutputValue() - Method in class enumj.MapPipeProcessor
-
- clearOutputValue() - Method in class enumj.SkipPipeProcessor
-
- clearOutputValue() - Method in class enumj.SkipWhilePipeProcessor
-
- clearOutputValue() - Method in class enumj.WhilePipeProcessor
-
- clearOutputValue() - Method in class enumj.ZipPipeProcessor
-
- clearSource() - Method in class enumj.EnumeratorEnumerable
-
Clears the internal source.
- collect(Collector<? super E, A, R>) - Method in interface enumj.Enumerator
-
Collects the elements of the current enumerator according to the
provided Collector.
- concat(Iterable<? extends E>) - Method in interface enumj.Enumerable
-
Concatenates the given Iterable to the current
Enumerable.
- concat(Iterator<? extends E>) - Method in interface enumj.Enumerator
-
Concatenates the current enumerator with the provided Iterator.
- concat(Iterable<? extends E>) - Method in interface enumj.Enumerator
-
Concatenates the current enumerator with the provided Iterable.
- concat(Enumeration<? extends E>) - Method in interface enumj.Enumerator
-
Concatenates the current enumerator with the provided
Enumeration.
- concat(Stream<? extends E>) - Method in interface enumj.Enumerator
-
Concatenates the current enumerator with the provided sequential
Stream.
- concat(Spliterator<? extends E>) - Method in interface enumj.Enumerator
-
Concatenates the current enumerator with the provided sequential
Spliterator.
- concat(Supplier<Optional<E>>) - Method in interface enumj.Enumerator
-
Concatenates the current enumerator with the sequence formed of
the elements supplied by the provided Supplier.
- concat(Enumerable<E>, Iterable<? extends E>) - Static method in class enumj.PipeEnumerable
-
Concatenates the given elements to the given enumerable.
- concat(Iterator<? extends E>) - Method in class enumj.PipeEnumerator
-
- concatOn(E...) - Method in interface enumj.Enumerable
-
Concatenates the given elements to the current Enumerable.
- concatOn(E...) - Method in interface enumj.Enumerator
-
Concatenates the current enumerator with the sequence formed of the
provided elements
- contains(E) - Method in interface enumj.Enumerator
-
Returns whether the current enumerator has an element equalling the
provided value.
- count() - Method in interface enumj.Enumerator
-
Returns the number of elements in the current enumerator.
- elementAt(long) - Method in interface enumj.Enumerator
-
Returns the element at the provided index within the sequence
of enumerated elements.
- elementsEqual(Iterable<T>) - Method in interface enumj.Enumerable
-
Checks whether the current Enumerable matches element-wise
the given Iterable.
- elementsEqual(Iterator<T>) - Method in interface enumj.Enumerator
-
Returns whether the current enumerator and the provided iterator
have equal elements and in the same order.
- empty() - Static method in interface enumj.Enumerable
-
Returns an Enumerable with no elements.
- empty() - Static method in interface enumj.Enumerator
-
Returns en enumerator with no elements.
- empty() - Static method in class enumj.Nullable
-
Returns an empty Nullable instance.
- empty() - Static method in class enumj.Out
-
Creates a new, empty output parameter.
- enable() - Method in class enumj.CachedEnumerable
-
Enables caching and returns the enabled state.
- enable() - Method in class enumj.CachedEnumerableState
-
Gets a new CachedEnumerableState instance identical to the
current one with the exception of having caching enabled.
- enqueueFilter(Predicate<R>) - Method in class enumj.AbstractPipeProcessor
-
Returns true and aggregates the given predicate to the
end of existing predicates, otherwise it returns false.
- enqueueFilter(Predicate<E>) - Method in class enumj.FilterPipeProcessor
-
- enqueueFilterProcessor(Predicate<? super E>) - Method in class enumj.PipeEnumerator
-
Enqueues the given filter by aggregating it with the last predicates,
if possible.
- enqueueMap(Function<R, U>) - Method in class enumj.AbstractPipeProcessor
-
Returns true and aggregates the given mapper to the
end of existing mappers, otherwise it returns false.
- enqueueMap(Function<Out, R>) - Method in class enumj.MapPipeProcessor
-
- enqueueMapProcessor(Function<? super E, ? extends X>) - Method in class enumj.PipeEnumerator
-
Enqueues the given mapper by aggregating it with the last mappers,
if possible.
- enqueueProcessor(AbstractPipeProcessor<? super E, ? extends X>) - Method in class enumj.PipeEnumerator
-
Adds the given processor to the back of the pipeline.
- enqueueProcessor(AbstractPipeMultiProcessor<? super E, ? extends X>) - Method in class enumj.PipeEnumerator
-
Adds the given processor to the back of the multi-pipeline.
- ensureLessThan(long, long, String) - Static method in class enumj.Checks
-
Checks whether something is less than a limit.
- ensureNonEnumerating(Enumerator<?>) - Static method in class enumj.Checks
-
Checks that an enumerator is not enumerating.
- ensureNonEnumerating(Enumerable<?>) - Static method in class enumj.Checks
-
Checks that an enumerable is not enumerating.
- ensureNonNegative(long, String) - Static method in class enumj.Checks
-
Checks whether something is not negative.
- ensureNotNull(T, String) - Static method in class enumj.Checks
-
Checks whether something is not null.
- Enumerable<E> - Interface in enumj
-
Iterable with high composability that returns an
Enumerator instance for its Iterator.
- EnumerableEnumeration<E> - Class in enumj
-
Enumeration encapsulating an Iterator.
- EnumerableEnumeration(Iterator<E>) - Constructor for class enumj.EnumerableEnumeration
-
Constructs a new EnumerableEnumeration instance.
- enumerating() - Method in class enumj.AbstractEnumerable
-
- enumerating() - Method in class enumj.AbstractEnumerator
-
- enumerating() - Method in interface enumj.Enumerable
-
Returns whether enumerator() has been called at least once.
- enumerating() - Method in interface enumj.Enumerator
-
Returns whether the enumerator has started enumerating.
- enumerating() - Method in class enumj.IntRangeEnumerator
-
- enumerating() - Method in class enumj.LongRangeEnumerator
-
- EnumerationEnumerator<E> - Class in enumj
-
Enumerator encapsulating an Enumeration.
- EnumerationEnumerator(Enumeration<E>) - Constructor for class enumj.EnumerationEnumerator
-
Constructs an EnumerationEnumerator instance.
- enumerator() - Method in class enumj.AbstractEnumerable
-
- enumerator() - Method in class enumj.CachedEnumerableState
-
Gets an Enumerator instance that enumerates over the cached
elements if caching is enabled or over the source Enumerable
if caching is disabled.
- enumerator() - Method in interface enumj.Enumerable
-
Returns a new Enumerator instance that enumerates over the
current Enumerable.
- Enumerator<E> - Interface in enumj
-
Iterator with high composability.
- EnumeratorEnumerable<E> - Class in enumj
-
Enumerable that encapsulates an enumerator.
- EnumeratorEnumerable(Iterator<E>) - Constructor for class enumj.EnumeratorEnumerable
-
Creates a EnumeratorEnumerable instance.
- enumj - package enumj
-
Package for highly composable iterators.
- equals(Object) - Method in class enumj.Nullable
-
- equals(Object) - Method in class enumj.Out
-
- filter(Predicate<? super E>) - Method in interface enumj.Enumerable
-
Returns an Enumerable enumerating over the current elements
satisfying the given Predicate.
- filter(Predicate<? super E>) - Method in interface enumj.Enumerator
-
Returns an enumerator consisting of the elements of the current
enumerator that match the provided predicate.
- filter(Predicate<? super T>) - Method in class enumj.Nullable
-
If a value is present and it matches the given predicate,
return a Nullable containing the value, otherwise return an
empty Nullable.
- filter(Enumerable<E>, Predicate<? super E>) - Static method in class enumj.PipeEnumerable
-
Returns an Enumerable that has the elements of the given
enumerable that pass the given predicate.
- filter(Predicate<? super E>) - Method in class enumj.PipeEnumerator
-
- FilterPipeProcessor<E> - Class in enumj
-
Pipe processor that knows how to filter elements in
the pipeline.
- FilterPipeProcessor(Predicate<E>) - Constructor for class enumj.FilterPipeProcessor
-
Constructs a FilterPipeProcessor instance.
- first() - Method in interface enumj.Enumerator
-
Returns the first element of the current enumerator, if any.
- flatMap(Function<? super E, ? extends Iterable<? extends R>>) - Method in interface enumj.Enumerable
-
Returns an Enumerable enumerating over the iterables produced
by applying the given mapper over the elements of the current
Enumerable.
- flatMap(Function<? super E, ? extends Iterator<? extends R>>) - Method in interface enumj.Enumerator
-
Returns an enumerator consisting of the results of replacing each
enumerated element with the content of a mapped enumerator obtained
by applying the provided mapper on each enumerated element.
- flatMap(Function<? super T, Nullable<U>>) - Method in class enumj.Nullable
-
If a value is present, apply the Nullable-bearing function to it,
return that result, otherwise return an empty Nullable.
- flatMap(Enumerable<E>, Function<? super E, ? extends Iterable<? extends R>>) - Static method in class enumj.PipeEnumerable
-
Returns an Enumerable that replaces the elements of the given
enumerable with the elements of the Iterable obtained
by applying the given mapper on the each element.
- flatMap(Function<? super E, ? extends Iterator<? extends R>>) - Method in class enumj.PipeEnumerator
-
- FlatMapPipeProcessor<In,Out> - Class in enumj
-
Pipe processor that flattens sub-iterators
generated by mapping enumerated elements.
- FlatMapPipeProcessor(Function<In, Iterator<Out>>) - Constructor for class enumj.FlatMapPipeProcessor
-
Constructs a FlatMapPipeProcessor instances.
- forEach(Consumer<? super E>) - Method in interface enumj.Enumerator
-
Performs an action on each enumerated element.
- ifPresent(Consumer<? super T>) - Method in class enumj.Nullable
-
Return true if a value is present, otherwise false.
- ILLEGAL_ENUMERATOR_STATE - Static variable in class enumj.Messages
-
State of enumerator is invalid.
- ILLEGAL_MULTIPLE_ENUMERATIONS - Static variable in class enumj.Messages
-
Multiple enumerations have been attempted.
- initialize() - Method in class enumj.Lazy
-
- internalEnumerator() - Method in class enumj.AbstractEnumerable
-
Yields a new Enumerator for the current Enumerable.
- internalEnumerator() - Method in class enumj.CachedEnumerable
-
- internalEnumerator() - Method in class enumj.ChoiceEnumerable
-
- internalEnumerator() - Method in class enumj.EnumeratorEnumerable
-
- internalEnumerator() - Method in class enumj.IterableEnumerable
-
- internalEnumerator() - Method in class enumj.LateBindingEnumerable
-
- internalEnumerator() - Method in class enumj.LazyEnumerable
-
- internalEnumerator() - Method in class enumj.OnceEnumerable
-
- internalEnumerator() - Method in class enumj.PipeEnumerable
-
- internalEnumerator() - Method in class enumj.SuppliedEnumerable
-
- internalHasNext() - Method in class enumj.AbstractEnumerator
-
Returns whether the enumerator has more elements.
- internalHasNext() - Method in class enumj.ArrayEnumerator
-
- internalHasNext() - Method in class enumj.CacheEnumerator
-
- internalHasNext() - Method in class enumj.ChoiceEnumerator
-
- internalHasNext() - Method in class enumj.EnumerationEnumerator
-
- internalHasNext() - Method in class enumj.IteratorEnumerator
-
- internalHasNext() - Method in class enumj.LateBindingEnumerator
-
- internalHasNext() - Method in class enumj.LazyEnumerator
-
- internalHasNext() - Method in class enumj.PipeEnumerator
-
- internalHasNext() - Method in class enumj.ShareableEnumerator
-
- internalHasNext() - Method in class enumj.SharingEnumerator
-
- internalHasNext() - Method in class enumj.SuppliedEnumerator
-
- internalHasNext() - Method in class enumj.TolerantEnumerator
-
- internalNext() - Method in class enumj.AbstractEnumerator
-
Returns the next enumerated element.
- internalNext() - Method in class enumj.ArrayEnumerator
-
- internalNext() - Method in class enumj.CacheEnumerator
-
- internalNext() - Method in class enumj.ChoiceEnumerator
-
- internalNext() - Method in class enumj.EnumerationEnumerator
-
- internalNext() - Method in class enumj.IteratorEnumerator
-
- internalNext() - Method in class enumj.LateBindingEnumerator
-
- internalNext() - Method in class enumj.LazyEnumerator
-
- internalNext() - Method in class enumj.PipeEnumerator
-
- internalNext() - Method in class enumj.ShareableEnumerator
-
- internalNext() - Method in class enumj.SharingEnumerator
-
- internalNext() - Method in class enumj.SuppliedEnumerator
-
- internalNext() - Method in class enumj.TolerantEnumerator
-
- internalOnceOnly() - Method in class enumj.AbstractEnumerable
-
Gets whether the current instance may yield a Enumerator
only once.
- internalOnceOnly() - Method in class enumj.CachedEnumerable
-
- internalOnceOnly() - Method in class enumj.ChoiceEnumerable
-
- internalOnceOnly() - Method in class enumj.EnumeratorEnumerable
-
- internalOnceOnly() - Method in class enumj.IterableEnumerable
-
- internalOnceOnly() - Method in class enumj.LateBindingEnumerable
-
- internalOnceOnly() - Method in class enumj.LazyEnumerable
-
- internalOnceOnly() - Method in class enumj.OnceEnumerable
-
- internalOnceOnly() - Method in class enumj.PipeEnumerable
-
- internalOnceOnly() - Method in class enumj.SuppliedEnumerable
-
- IntRangeEnumerator - Class in enumj
-
Enumerator and PrimitiveIterator.OfInt enumerating
over a range of integers.
- IntRangeEnumerator(int, int, boolean) - Constructor for class enumj.IntRangeEnumerator
-
Constructs an IntRangeEnumerator instance.
- isDisabled() - Method in class enumj.CachedEnumerableState
-
Gets whether the caching is disabled.
- isInactive() - Method in class enumj.AbstractPipeProcessor
-
Gets whether the processor does not process any more and the pipeline
up to it should be discarded.
- isInactive() - Method in class enumj.FilterPipeProcessor
-
- isInactive() - Method in class enumj.FlatMapPipeProcessor
-
- isInactive() - Method in class enumj.LimitPipeProcessor
-
- isInactive() - Method in class enumj.MapPipeProcessor
-
- isInactive() - Method in class enumj.SkipPipeProcessor
-
- isInactive() - Method in class enumj.SkipWhilePipeProcessor
-
- isInactive() - Method in class enumj.WhilePipeProcessor
-
- isInactive() - Method in class enumj.ZipPipeProcessor
-
- isInitialized() - Method in class enumj.Lazy
-
Gets whether this lazy instance has been initialised.
- isPresent() - Method in class enumj.Nullable
-
Return true if there is a value present, otherwise false.
- IterableEnumerable<E> - Class in enumj
-
Enumerable encapsulating an Iterable.
- iterate(E, UnaryOperator<E>) - Static method in interface enumj.Enumerable
-
Returns an Enumerable enumerating over the elements generated by
repeatedly applying the given unary operator on the given seed.
- iterate(E, UnaryOperator<E>) - Static method in interface enumj.Enumerator
-
Returns an infinite enumerator obtained by applying repeatedly the
provided unary operator.
- iterator() - Method in interface enumj.Enumerable
-
Returns a new Iterator instance that can traverse the current
Enumerable.
- IteratorEnumerator<E> - Class in enumj
-
Enumerator encapsulating an Iterator.
- IteratorEnumerator(Iterator<E>) - Constructor for class enumj.IteratorEnumerator
-
Creates an IteratorEnumerator instance.
- last() - Method in interface enumj.Enumerator
-
Returns the last element of the current enumerator, if any.
- LateBindingEnumerable<E> - Class in enumj
-
Enumerable whose source of elements can be defined after
construction.
- LateBindingEnumerable() - Constructor for class enumj.LateBindingEnumerable
-
- LateBindingEnumerator<E> - Class in enumj
-
Enumerator whose source of elements can be defined after
construction.
- LateBindingEnumerator() - Constructor for class enumj.LateBindingEnumerator
-
- Lazy<T> - Class in enumj
-
LazyInitializer that gets a Supplier to initialise
with.
- Lazy(Supplier<T>) - Constructor for class enumj.Lazy
-
Constructs a Lazy instance.
- LazyEnumerable<E> - Class in enumj
-
Enumerable that retrieves its source of elements lazily.
- LazyEnumerator<E> - Class in enumj
-
Enumerator that retrieves its source of elements lazily.
- LazyException - Exception in enumj
-
RuntimeException for the use of Lazy instances.
- LazyException() - Constructor for exception enumj.LazyException
-
Creates an empty LazyException instance.
- LazyException(String) - Constructor for exception enumj.LazyException
-
Creates a LazyException instance with message.
- LazyException(String, Throwable) - Constructor for exception enumj.LazyException
-
- limit - Variable in class enumj.CachedEnumerableState
-
Maximum size of the cache.
- limit(long) - Method in interface enumj.Enumerable
-
Returns an Enumerable enumerating over the current elements up to
the given limit.
- limit(long) - Method in interface enumj.Enumerator
-
Returns the current enumerator truncated to the given size.
- limit(Enumerable<E>, long) - Static method in class enumj.PipeEnumerable
-
Returns an Enumerable that limits the elements of the given
enumerable to the given limit.
- limit(long) - Method in class enumj.PipeEnumerator
-
- LimitPipeProcessor<E> - Class in enumj
-
Pipe processor that stops enumeration once a limit is reached.
- LimitPipeProcessor(long) - Constructor for class enumj.LimitPipeProcessor
-
Constructs a LimitPipeProcessor instance.
- limitWhile(Predicate<? super E>) - Method in interface enumj.Enumerable
-
Returns an Enumerable enumerating over the current elements while
the given predicate holds true.
- limitWhile(Predicate<? super E>) - Method in interface enumj.Enumerator
-
Returns an enumerator enumerating over the elements of the current
enumerator while stopping at the first element that does not match
the provided predicate.
- limitWhile(Enumerable<E>, Predicate<? super E>) - Static method in class enumj.PipeEnumerable
-
Returns an Enumerable that limits the elements of the given
enumerable while the given predicate holds true when
applied on the elements of the given enumerable.
- LongRangeEnumerator - Class in enumj
-
Enumerator and PrimitiveIterator.OfLong enumerating
over a range of long integers.
- LongRangeEnumerator(long, long, boolean) - Constructor for class enumj.LongRangeEnumerator
-
- map(Function<? super E, ? extends R>) - Method in interface enumj.Enumerable
-
Returns an Enumerable enumerating over the current elements
mapped by the given mapper.
- map(BiFunction<? super E, ? super Long, ? extends R>) - Method in interface enumj.Enumerable
-
Returns an Enumerable enumerating over the current indexed
elements mapped by the given mapper.
- map(Function<? super E, ? extends R>) - Method in interface enumj.Enumerator
-
Returns an enumerator consisting of the results of applying the given
function on the enumerated elements.
- map(BiFunction<? super E, ? super Long, ? extends R>) - Method in interface enumj.Enumerator
-
Returns an enumerator consisting of the results of applying the
provided function on the enumerated elements.
- map(Function<? super T, ? extends U>) - Method in class enumj.Nullable
-
If a value is present, apply the provided mapping function to it and
return a Nullable describing the result.
- map(Enumerable<E>, Function<? super E, ? extends R>) - Static method in class enumj.PipeEnumerable
-
Returns an Enumerable that maps the elements of the given
enumerable to the values mapped by mapper applied on
each element and its index.
- map(Enumerable<E>, BiFunction<? super E, ? super Long, ? extends R>) - Static method in class enumj.PipeEnumerable
-
Returns an Enumerable that maps the elements of the given
enumerable to the values mapped by mapper applied on
each element and its index.
- map(Function<? super E, ? extends X>) - Method in class enumj.PipeEnumerator
-
- map(Enumerator<E>, BiFunction<? super E, ? super Long, ? extends R>, boolean) - Static method in class enumj.Reversible
-
Applies a Enumerator.map(BiFunction) operation
upon source, in reverse if necessary.
- MapPipeProcessor<In,Out> - Class in enumj
-
Pipe processor that transforms inputs elements by mapping them to output
elements.
- MapPipeProcessor(Function<In, Out>) - Constructor for class enumj.MapPipeProcessor
-
Constructs a MapPipeProcessor instance.
- max(Comparator<? super E>) - Method in interface enumj.Enumerator
-
Returns the maximum of the enumerated elements according to the provided
comparator.
- Messages - Class in enumj
-
Utility class containing error messages.
- Messages() - Constructor for class enumj.Messages
-
- min(Comparator<? super E>) - Method in interface enumj.Enumerator
-
Returns the minimum of the enumerated elements according to the provided
comparator.
- multiPipelineAddFirst(AbstractPipeMultiProcessor<? super X, ?>) - Method in class enumj.PipeEnumerator
-
Adds the given processor to the beginning of
multiPipeline.
- multiPipelineAddLast(AbstractPipeMultiProcessor<? super E, ? extends X>) - Method in class enumj.PipeEnumerator
-
Adds the given processor to the end of multiPipeLine.
- needsValue() - Method in class enumj.AbstractPipeMultiProcessor
-
Gets whether the processor needs a fresh input value to produce output
values.
- needsValue() - Method in class enumj.FlatMapPipeProcessor
-
- NEGATIVE_ENUMERATOR_EXPECTED_COUNT - Static variable in class enumj.Messages
-
Expected enumerator count is negative.
- NEGATIVE_ENUMERATOR_INDEX - Static variable in class enumj.Messages
-
Index of enumerator is negative.
- NEGATIVE_ENUMERATOR_SIZE - Static variable in class enumj.Messages
-
Size of enumerator is negative.
- NEGATIVE_RETRIES - Static variable in class enumj.Messages
-
Negative number of error recovery retries.
- next() - Method in class enumj.AbstractEnumerator
-
- next() - Method in class enumj.IntRangeEnumerator
-
- next() - Method in class enumj.LongRangeEnumerator
-
- nextElement() - Method in class enumj.EnumerableEnumeration
-
- nextInt() - Method in class enumj.IntRangeEnumerator
-
- nextLong() - Method in class enumj.LongRangeEnumerator
-
- nextOnSameSourceOnNoValue - Variable in class enumj.AbstractPipeProcessor
-
Represents whether the pipeline should proceed to the next element
of the same source when hasOutputValue() returns false.
- NO_SINGLE_ENUMERATOR_ELEMENT - Static variable in class enumj.Messages
-
Enumerator should have exactly one element.
- noAction - Static variable in class enumj.CachedEnumerable
-
- noneMatch(Predicate<? super E>) - Method in interface enumj.Enumerator
-
Returns whether no enumerated element matches the provided predicate.
- NULL_ENUMERATOR_ACCUMULATOR - Static variable in class enumj.Messages
-
Function accumulating enumerator elements is null.
- NULL_ENUMERATOR_CLASS - Static variable in class enumj.Messages
-
Class casting enumerator elements is null.
- NULL_ENUMERATOR_COMPARATOR - Static variable in class enumj.Messages
-
Function comparing enumerator elements is null.
- NULL_ENUMERATOR_CONSUMER - Static variable in class enumj.Messages
-
Procedure processing enumerator elements is null.
- NULL_ENUMERATOR_GENERATOR - Static variable in class enumj.Messages
-
The function generating enumerator elements is null.
- NULL_ENUMERATOR_HANDLER - Static variable in class enumj.Messages
-
Procedure handling enumeration errors is null.
- NULL_ENUMERATOR_MAPPER - Static variable in class enumj.Messages
-
Function mapping enumerated elements is null.
- NULL_ENUMERATOR_PREDICATE - Static variable in class enumj.Messages
-
Predicate that works upon the enumerator is null.
- NULL_ENUMERATOR_SOURCE - Static variable in class enumj.Messages
-
Enumerator source is null.
- NULL_ITERATOR - Static variable in class enumj.Messages
-
Iterator is null.
- NULL_PIPE_PROCESSOR_OPERATOR - Static variable in class enumj.Messages
-
Processor operator is null.
- Nullable<T> - Class in enumj
-
Container object which may or may not contain a value.
- of(Iterable<E>) - Static method in interface enumj.Enumerable
-
Returns an
Enumerable enumerating over the given
Iterable
source.
- of(Iterator<E>) - Static method in interface enumj.Enumerable
-
Returns an OnceEnumerable enumerating over the given
Iterator source.
- of(Enumeration<E>) - Static method in interface enumj.Enumerable
-
Returns an OnceEnumerable enumerating over the given
Enumeration.
- of(Stream<E>) - Static method in interface enumj.Enumerable
-
Returns an OnceEnumerable enumerating over the given
Stream.
- of(Spliterator<E>) - Static method in interface enumj.Enumerable
-
Returns an OnceEnumerable enumerating over the given
Spliterator.
- of(Supplier<Optional<E>>) - Static method in interface enumj.Enumerable
-
Returns an OnceEnumerable enumerating over a sequence of
elements supplied lazily.
- of(E[]) - Static method in interface enumj.Enumerator
-
Returns an enumerator iterating over the given array.
- of(Iterator<E>) - Static method in interface enumj.Enumerator
-
Returns an enumerator enumerating over an existing
Iterator.
- of(Iterable<E>) - Static method in interface enumj.Enumerator
-
Returns an enumerator enumerating over the elements of an
existing Iterable.
- of(Enumeration<E>) - Static method in interface enumj.Enumerator
-
Returns an enumerator enumerating over the elements of an
existing Enumeration.
- of(Stream<E>) - Static method in interface enumj.Enumerator
-
Returns an enumerator enumerating over the elements of an existing
Stream.
- of(Spliterator<E>) - Static method in interface enumj.Enumerator
-
Returns an enumerator enumerating over the elements of an existing
Spliterator.
- of(Supplier<Optional<E>>) - Static method in interface enumj.Enumerator
-
Returns an enumerator enumerating over the elements supplied by an
existing Supplier.
- of(Iterable<E>) - Static method in class enumj.IterableEnumerable
-
Constructs an Enumerable from an Iterable.
- of(Iterator<T>) - Static method in class enumj.IteratorEnumerator
-
Constructs an Enumerator from an Iterator.
- of(Supplier<? extends Iterable<E>>) - Static method in class enumj.LazyEnumerable
-
Creates a LazyEnumerable instance that uses source to
get its source of elements.
- of(Supplier<? extends Iterator<E>>) - Static method in class enumj.LazyEnumerator
-
Creates a LazyEnumerator instance that uses source to
get its source of elements.
- of(T) - Static method in class enumj.Nullable
-
Returns a Nullable with the specified value.
- of(Optional<T>) - Static method in class enumj.Nullable
-
Returns a Nullable with the value of the specified
Optional if any or an empty Nullable otherwise.
- of(Iterable<? extends T>, Function<Enumerator<E>, Enumerator<T>>, Supplier<Boolean>) - Static method in class enumj.PipeEnumerable
-
Creates a PipeEnumerable instance with the given source,
operator and once only flag.
- of(Iterator<T>) - Static method in class enumj.PipeEnumerator
-
Creates a PipeEnumerator based on the given source
Iterator.
- of(Iterator<T>) - Static method in class enumj.PipeSource
-
Creates a new instance of PipeSource with the given
source.
- ofLateBinding(Class<E>) - Static method in interface enumj.Enumerable
-
Returns a LateBindingEnumerable of elements of the given type.
- ofLateBinding(Class<E>) - Static method in interface enumj.Enumerator
-
Returns an enumerator that supports late-binding.
- ofLazyEnumeration(Supplier<? extends Enumeration<E>>) - Static method in interface enumj.Enumerable
-
Returns an OnceEnumerable enumerating over an
Enumeration supplied lazily.
- ofLazyEnumeration(Supplier<? extends Enumeration<E>>) - Static method in interface enumj.Enumerator
-
Returns an enumerator enumerating over an Enumeration supplied
lazily.
- ofLazyIterable(Supplier<? extends Iterable<E>>) - Static method in interface enumj.Enumerable
-
Returns an Enumerable enumerating over an Iterable
supplied lazily.
- ofLazyIterable(Supplier<? extends Iterable<E>>) - Static method in interface enumj.Enumerator
-
Returns an enumerator enumerating over an Iterable supplied
lazily.
- ofLazyIterator(Supplier<? extends Iterator<E>>) - Static method in interface enumj.Enumerable
-
Returns an OnceEnumerable enumerating over an Iterator
supplied lazily.
- ofLazyIterator(Supplier<? extends Iterator<E>>) - Static method in interface enumj.Enumerator
-
Returns an enumerator enumerating over an
Iterator supplied
lazily.
- ofLazySpliterator(Supplier<? extends Spliterator<E>>) - Static method in interface enumj.Enumerable
-
Returns an
OnceEnumerable enumerating over a
Spliterator
supplied lazily.
- ofLazySpliterator(Supplier<? extends Spliterator<E>>) - Static method in interface enumj.Enumerator
-
Returns an enumerator enumerating over a Spliterator supplied
lazily.
- ofLazyStream(Supplier<? extends Stream<E>>) - Static method in interface enumj.Enumerable
-
Returns an OnceEnumerable enumerating over a
Stream supplied lazily.
- ofLazyStream(Supplier<? extends Stream<E>>) - Static method in interface enumj.Enumerator
-
Returns an enumerator enumerating over a Stream supplied lazily.
- on(E...) - Static method in interface enumj.Enumerable
-
Returns an Enumerable enumerating over the given elements.
- on(E...) - Static method in interface enumj.Enumerator
-
Returns an enumerator returning the given elements.
- OnceEnumerable<E> - Class in enumj
-
EnumeratorEnumerable that yields one enumerator only.
- OnceEnumerable(Iterator<E>) - Constructor for class enumj.OnceEnumerable
-
Creates an OnceEnumerable instance.
- onceOnly() - Method in class enumj.AbstractEnumerable
-
- onceOnly() - Method in class enumj.CachedEnumerableState
-
Gets whether the source Enumerable is a once only
enumerator.
- onceOnly() - Method in interface enumj.Enumerable
-
Returns whether the enumerable may generate only one iterator or not.
- onceOnly(Iterable<?>) - Static method in interface enumj.Enumerable
-
Returns whether the given iterable may generated only
one iterator or not.
- onceOnly - Variable in class enumj.PipeOperator
-
Lazy value indicating whether the operator can be applied
only once or not.
- orElse(T) - Method in class enumj.Nullable
-
Return the value if present, otherwise return other.
- orElseGet(Supplier<? extends T>) - Method in class enumj.Nullable
-
Return the value if present, otherwise invoke other and return
the result of that invocation.
- orElseThrow(Supplier<? extends X>) - Method in class enumj.Nullable
-
Return the contained value, if present, otherwise throw an exception to
be created by the provided supplier.
- Out<T> - Class in enumj
-
Encapsulates output method parameters.
- peek(Consumer<? super E>) - Method in interface enumj.Enumerable
-
Returns an Enumerable enumerating the current elements while
feeding them to the given Consumer.
- peek(Consumer<? super E>) - Method in interface enumj.Enumerator
-
Returns an enumerator with the same enumerated elements as the current
stream, additionally performing the provided action on each enumerated
element.
- peek(Enumerable<E>, Consumer<? super E>) - Static method in class enumj.PipeEnumerable
-
Returns an Enumerable that peeks the elements of the given
enumerable, applies the given action on each of them
and then returns the elements unchanged.
- peek(Enumerator<E>, Consumer<? super E>, boolean) - Static method in class enumj.Reversible
-
Applies a Enumerator.peek(Consumer) operation
upon source, in reverse if necessary.
- PipeEnumerable<T,E> - Class in enumj
-
Enumerable that support high compositionality.
- PipeEnumerable(Iterable<T>, Function<Enumerator<E>, Enumerator<T>>, Supplier<Boolean>) - Constructor for class enumj.PipeEnumerable
-
Constructs a PipeEnumerable using a regular Iterable
as a link.
- PipeEnumerable(PipeEnumerable<?, T>, Function<Enumerator<E>, Enumerator<T>>, Supplier<Boolean>) - Constructor for class enumj.PipeEnumerable
-
Constructs a PipeEnumerable using a Enumerable as a link.
- PipeEnumerator<E> - Class in enumj
-
Implementation of highly composable enumerators.
- PipeEnumerator(Enumerator<E>) - Constructor for class enumj.PipeEnumerator
-
Creates a new PipeEnumerator instance based on the given
source Enumerator.
- PipeEnumerator() - Constructor for class enumj.PipeEnumerator
-
Creates a new PipeEnumerator instance with an empty internal
pipeline.
- PipeOperator<T,E> - Class in enumj
-
Function that a PipeEnumerable applies in order
to constructs its Enumerator instances.
- PipeOperator(Function<Enumerator<T>, Enumerator<E>>, Supplier<Boolean>) - Constructor for class enumj.PipeOperator
-
Creates a PipeOperator instance with the given operator
and onceOnly flag.
- PipeSource<E> - Class in enumj
-
IteratorEnumerator that acts as a source of enumerated
elements for AbstractPipeProcessor instances within
PipeEnumerator.pipeline.
- PipeSource(Iterator<E>) - Constructor for class enumj.PipeSource
-
Constructs a new PipeSource instances based on the given
source.
- prepend(Iterable<? extends E>) - Method in interface enumj.Enumerable
-
Prepends the current Enumerable by the given Iterable.
- prepend(Iterator<? extends E>) - Method in interface enumj.Enumerator
-
Prepends the current enumerator with the provided
Iterator.
- prepend(Iterable<? extends E>) - Method in interface enumj.Enumerator
-
Prepends the current enumerator with the provided
Iterable.
- prepend(Enumeration<? extends E>) - Method in interface enumj.Enumerator
-
Prepends the current enumerator with the provided
Enumeration.
- prepend(Stream<? extends E>) - Method in interface enumj.Enumerator
-
Prepends the current enumerator with the provided sequential
Stream.
- prepend(Spliterator<? extends E>) - Method in interface enumj.Enumerator
-
Prepends the current enumerator with the provided sequential
Spliterator.
- prepend(Supplier<Optional<E>>) - Method in interface enumj.Enumerator
-
Prepends the current enumerator with the sequence formed of
the elements supplied by the provided Supplier.
- prepend(Iterator<? extends E>) - Method in class enumj.PipeEnumerator
-
- prependOn(E...) - Method in interface enumj.Enumerable
-
Prepends the current Enumerable by the given elements.
- prependOn(E...) - Method in interface enumj.Enumerator
-
Prepends the current enumerator with the sequence formed of the provided
elements.
- processInputValue(T) - Method in class enumj.AbstractPipeProcessor
-
Processes an input value in order to return a result, if any.
- processInputValue(E) - Method in class enumj.FilterPipeProcessor
-
- processInputValue(In) - Method in class enumj.FlatMapPipeProcessor
-
- processInputValue(E) - Method in class enumj.LimitPipeProcessor
-
- processInputValue(In) - Method in class enumj.MapPipeProcessor
-
- processInputValue(E) - Method in class enumj.SkipPipeProcessor
-
- processInputValue(E) - Method in class enumj.SkipWhilePipeProcessor
-
- processInputValue(E) - Method in class enumj.WhilePipeProcessor
-
- processInputValue(Optional<E>) - Method in class enumj.ZipPipeProcessor
-
- pushFrontFilter(Predicate<R>) - Method in class enumj.AbstractPipeProcessor
-
Returns true and aggregates the given predicate to the
top of the existing predicates, otherwise it returns false.
- pushFrontFilter(Predicate<E>) - Method in class enumj.FilterPipeProcessor
-
- pushFrontFilterProcessor(Predicate<?>) - Method in class enumj.PipeEnumerator
-
Prepends the given filter to the existing pipeline by aggregating it with
the first filters, if possible.
- pushFrontMap(Function<R, U>) - Method in class enumj.AbstractPipeProcessor
-
Returns true and aggregates the given mapper to the
top of the existing mappers, otherwise it returns false.
- pushFrontMap(Function<Out, R>) - Method in class enumj.MapPipeProcessor
-
- pushFrontMapProcessor(Function<? super X, ?>) - Method in class enumj.PipeEnumerator
-
Prepends the given mapper to the existing pipeline by aggregating it with
the first mappers, if possible.
- pushFrontProcessor(AbstractPipeProcessor<? super X, ?>) - Method in class enumj.PipeEnumerator
-
Adds the given processor to the front of the pipeline.
- pushFrontProcessor(AbstractPipeMultiProcessor<? super X, ?>) - Method in class enumj.PipeEnumerator
-
Adds the given processor to the front of the multi-pipeline.
- range(E, E, UnaryOperator<E>, Comparator<? super E>) - Static method in interface enumj.Enumerable
-
Returns an Enumerable enumerating over a range of elements.
- range(E, E, UnaryOperator<E>, Comparator<? super E>) - Static method in interface enumj.Enumerator
-
Returns an enumerator enumerating over an ordered sequence between
a start and an exclusive end.
- rangeClosed(E, E, UnaryOperator<E>, Comparator<? super E>) - Static method in interface enumj.Enumerable
-
Returns an Enumerable enumerating over a range of elements.
- rangeClosed(E, E, UnaryOperator<E>, Comparator<? super E>) - Static method in interface enumj.Enumerator
-
Returns an enumerator enumerating over an ordered sequence between
a start and an inclusive end.
- rangeInt(int, int) - Static method in interface enumj.Enumerable
-
Returns an Enumerable enumerating over a range of integers.
- rangeInt(int, int) - Static method in interface enumj.Enumerator
-
Returns an enumerator enumerating over an integral range, upper limit
excluded.
- rangeIntClosed(int, int) - Static method in interface enumj.Enumerable
-
Returns an Enumerable enumerating over a range of integers.
- rangeIntClosed(int, int) - Static method in interface enumj.Enumerator
-
Returns an enumerator enumerating over an integral range, upper limit
included.
- rangeLong(long, long) - Static method in interface enumj.Enumerable
-
Returns an Enumerable enumerating over a range of long integers.
- rangeLong(long, long) - Static method in interface enumj.Enumerator
-
Returns an enumerator enumerating over an long integral range, upper
limit excluded.
- rangeLongClosed(long, long) - Static method in interface enumj.Enumerable
-
Returns an Enumerable enumerating over a range of long integers.
- rangeLongClosed(long, long) - Static method in interface enumj.Enumerator
-
Returns an enumerator enumerating over an long integral range, upper
limit included.
- reduce(BinaryOperator<E>) - Method in interface enumj.Enumerator
-
Performs a reduction on enumerated elements using an associative
accumulation function and returns the reduced value, if any.
- reduce(E, BinaryOperator<E>) - Method in interface enumj.Enumerator
-
Performs a reduction on enumerated elements using an identity element
and an associative accumulation function and returns the reduced value.
- repeat(E, long) - Static method in interface enumj.Enumerable
-
Returns an Enumerable repeating the given element the given
number of time.
- repeat(E, long) - Static method in interface enumj.Enumerator
-
Returns an enumerator that enumerates the same element the given number
of times.
- repeatAll(int) - Method in interface enumj.Enumerable
-
Returns an Enumerable repeating all the current elements the
given number of times.
- repeatAll(Supplier<Iterator<E>>, long) - Static method in interface enumj.Enumerator
-
Returns an enumerator that enumerates over the iterator supplied lazily
the given number of times.
- repeatAll(int) - Method in interface enumj.Enumerator
-
Returns an enumerator that keeps enumerating over the current sequence,
a given number of times.
- repeatEach(long) - Method in interface enumj.Enumerable
-
Returns an Enumerable repeating each current element the given
number of times.
- repeatEach(int) - Method in interface enumj.Enumerator
-
Enumerates over the elements of the current enumerator the given number
of times.
- reset() - Method in class enumj.CachedEnumerable
-
Resets the cache and returns the new state of the current
CachedEnumerable.
- reset() - Method in class enumj.CachedEnumerableState
-
Gets a new CachedEnumerableState instance identical to the
current one with the exception that it is reset.
- resize(long) - Method in class enumj.CachedEnumerable
-
Resizes the cache to a larger limit.
- resize(long) - Method in class enumj.CachedEnumerableState
-
Gets a new CachedEnumerableState instance identical to the
current one with the exception of a greater limit.
- retrieveOutputValue() - Method in class enumj.AbstractPipeProcessor
-
Retrieves the processed result produced by
AbstractPipeProcessor.processInputValue(Object).
- retrieveOutputValue() - Method in class enumj.FilterPipeProcessor
-
- retrieveOutputValue() - Method in class enumj.FlatMapPipeProcessor
-
- retrieveOutputValue() - Method in class enumj.LimitPipeProcessor
-
- retrieveOutputValue() - Method in class enumj.MapPipeProcessor
-
- retrieveOutputValue() - Method in class enumj.SkipPipeProcessor
-
- retrieveOutputValue() - Method in class enumj.SkipWhilePipeProcessor
-
- retrieveOutputValue() - Method in class enumj.WhilePipeProcessor
-
- retrieveOutputValue() - Method in class enumj.ZipPipeProcessor
-
- reverse() - Method in interface enumj.Enumerable
-
Returns an Enumerable enumerating over the current elements in
reversed order.
- reverse() - Method in interface enumj.Enumerator
-
Returns an enumerator that reverses the order of the enumerated elements.
- reversedConcat(Iterator<?>) - Method in class enumj.PipeEnumerator
-
Prepends the given elements at the front of sources.
- reversedFilter(Predicate<?>) - Method in class enumj.PipeEnumerator
-
Adds a filter processor at the front of the pipeline.
- reversedFlatMap(Function<?, ? extends Iterator<?>>) - Method in class enumj.PipeEnumerator
-
Adds a flat-map processor at the front of pipeline.
- reversedLimit(long) - Method in class enumj.PipeEnumerator
-
Adds a limit processor at the front of pipeline.
- reversedMap(Function<? super X, ?>) - Method in class enumj.PipeEnumerator
-
Adds a map processor at the front of pipeline.
- reversedSkip(long) - Method in class enumj.PipeEnumerator
-
Adds a skip processor at the front of pipeline.
- reversedSkipWhile(Predicate<?>) - Method in class enumj.PipeEnumerator
-
Adds a skip-while processor at the front of pipeline.
- reversedTakeWhile(Predicate<?>) - Method in class enumj.PipeEnumerator
-
Adds a take-while processor at the front of pipeline.
- reversedZipAll(Iterator<?>, List<Iterator<?>>) - Method in class enumj.PipeEnumerator
-
Adds a zip-all processor at the front of pipeline.
- Reversible - Class in enumj
-
Utility class containing methods for Enumerable.
- Reversible() - Constructor for class enumj.Reversible
-
- safePipelineAddFirst(AbstractPipeProcessor<? super X, ?>) - Method in class enumj.PipeEnumerator
-
Adds the given processor at the front of pipeline.
- safePipelineAddLast(AbstractPipeProcessor<? super E, ? extends X>) - Method in class enumj.PipeEnumerator
-
Adds the given processor to the end of pipeline.
- set(T) - Method in class enumj.Nullable
-
Set a value to this Nullable.
- set(T) - Method in class enumj.Out
-
Sets the value of the output parameter.
- setFirstProcessorIfNone(AbstractPipeProcessor<?, ?>) - Method in class enumj.PipeSource
-
Sets firstProcessor to the given AbstractPipeProcessor
if there is none.
- setNext(AbstractPipeProcessor<? extends R, ?>) - Method in class enumj.AbstractPipeProcessor
-
Sets the value of AbstractPipeProcessor.next.
- setSource(PipeSource) - Method in class enumj.AbstractPipeProcessor
-
Sets the value of AbstractPipeProcessor.source.
- setSource(Iterator<?>) - Method in class enumj.PipeEnumerator
-
Sets the source of enumeration.
- share() - Method in class enumj.ShareableEnumerator
-
Creates an Enumerator instance that will share the
elements of the current enumerator.
- share(int) - Method in class enumj.ShareableEnumerator
-
Creates an array of Enumerator instances that will share
the elements of the current enumerator.
- ShareableEnumerator<E> - Class in enumj
-
Enumerator with support for element sharing.
- ShareableEnumerator(Iterator<E>) - Constructor for class enumj.ShareableEnumerator
-
Creates a ShareableEnumerator instance that will share the
elements of the given source.
- SharingEnumerator<E> - Class in enumj
-
Enumerator sharing the elements of a common
ShareableEnumerator.
- SharingEnumerator(ShareableEnumerator<E>, Enumerator<E>) - Constructor for class enumj.SharingEnumerator
-
Creates a SharingEnumerator instance that shares the elements
of sharedSource via cachedSource.
- single() - Method in interface enumj.Enumerator
-
Returns the one and only element of the current enumerator.
- skip(long) - Method in interface enumj.Enumerable
-
Returns an Enumerable that skips the given number of current
elements.
- skip(long) - Method in interface enumj.Enumerator
-
Returns the current enumerator with the given number of front elements
dropped.
- skip(Enumerable<E>, long) - Static method in class enumj.PipeEnumerable
-
Returns an Enumerable that skips n times over the
elements of the given enumerable.
- skip(long) - Method in class enumj.PipeEnumerator
-
- SkipPipeProcessor<E> - Class in enumj
-
Pipe processor that skips over a number of elements.
- SkipPipeProcessor(long) - Constructor for class enumj.SkipPipeProcessor
-
Constructs a SkipPipeProcessor that skips over n
elements.
- skipWhile(Predicate<? super E>) - Method in interface enumj.Enumerable
-
Returns an Enumerable that skips while the given condition
holds true.
- skipWhile(Predicate<? super E>) - Method in interface enumj.Enumerator
-
Returns the current enumerator with front elements dropped as long as
they match a given predicate.
- skipWhile(Enumerable<E>, Predicate<? super E>) - Static method in class enumj.PipeEnumerable
-
Returns an Enumerable that skips the elements of the given
enumerable while the given predicate holds true.
- skipWhile(Predicate<? super E>) - Method in class enumj.PipeEnumerator
-
- SkipWhilePipeProcessor<E> - Class in enumj
-
Pipe processor that skips over enumerated elements
as long as a condition holds true.
- SkipWhilePipeProcessor(Predicate<E>) - Constructor for class enumj.SkipWhilePipeProcessor
-
Constructs a SkipWhilePipeProcessor that skips enumerated
elements as long as the given filter holds true.
- sorted() - Method in interface enumj.Enumerable
-
Returns an Enumerable enumerating over the current elements
in sorted order.
- sorted(Comparator<? super E>) - Method in interface enumj.Enumerable
-
Returns an Enumerable enumerating over the current elements
in sorted order according to the given comparator.
- sorted() - Method in interface enumj.Enumerator
-
Returns an enumerator the sorts the enumerated elements.
- sorted(Comparator<? super E>) - Method in interface enumj.Enumerator
-
Returns an enumerator that sorts the current elements according to the
given comparator.
- source - Variable in class enumj.CachedEnumerableState
-
Enumerable instance providing the elements to cache.
- startSharedEnumeration() - Method in class enumj.ShareableEnumerator
-
Marks the shared enumeration state consisting in the
enumerators sharing this shareable enumerator starting their own
enumeration.
- state() - Method in class enumj.CachedEnumerable
-
Gets a CachedEnumerableState instance representing the state
of the current CachedEnumerable.
- straightHasNext() - Method in class enumj.PipeEnumerator
-
Gets whether there are elements in one of the sources.
- SuppliedEnumerable<E> - Class in enumj
-
Enumerable that returns enumerators yielded by a Supplier.
- SuppliedEnumerable(Supplier<Enumerator<E>>) - Constructor for class enumj.SuppliedEnumerable
-
Constructs a SuppliedEnumerable instance.
- SuppliedEnumerator<E> - Class in enumj
-
Enumerator over optional elements given by a Supplier.
- SuppliedEnumerator(Supplier<Optional<E>>) - Constructor for class enumj.SuppliedEnumerator
-
Creates a SuppliedEnumerator that enumerated over the optional
elements supplied by source.
- take(long) - Method in interface enumj.Enumerable
-
Returns an Enumerable enumerating over the current elements up to
the given limit.
- take(long) - Method in interface enumj.Enumerator
-
Returns the current enumerator truncated to the given size.
- takeWhile(Predicate<? super E>) - Method in interface enumj.Enumerable
-
Returns an Enumerable enumerating over the current elements while
the given predicate holds true.
- takeWhile(Predicate<? super E>) - Method in interface enumj.Enumerator
-
Returns an enumerator enumerating over the elements of the current
enumerator while stopping at the first element that does not match
the provided predicate.
- takeWhile(Enumerable<E>, Predicate<? super E>) - Static method in class enumj.PipeEnumerable
-
Returns an Enumerable that limits the elements of the given
enumerable while the given predicate holds true when
applied on the elements of the given enumerable.
- takeWhile(Predicate<? super E>) - Method in class enumj.PipeEnumerator
-
- toArray(Class<E>) - Method in interface enumj.Enumerator
-
Collects the current enumerator into an array of elements of given class.
- TolerantEnumerator<E> - Class in enumj
-
Enumerator that continues enumeration even in presence of errors by
passing them to an error handler.
- TolerantEnumerator(Enumerator<E>, Consumer<? super Exception>, int) - Constructor for class enumj.TolerantEnumerator
-
Creates a TolerantEnumerator that enumerates over the given
source and handles errors by calling the given error
handler a given number of times.
- toList() - Method in interface enumj.Enumerator
-
Collects the current enumerator into a list of elements.
- toMap(Function<? super E, K>, Function<? super E, V>) - Method in interface enumj.Enumerator
-
Collects the current enumerator into a Map according to
a key mapping function and a value mapping function.
- toSet() - Method in interface enumj.Enumerator
-
Collects the current enumerator into a set.
- toString() - Method in class enumj.Nullable
-
- toString() - Method in class enumj.Out
-
- tryGetNext() - Method in class enumj.PipeEnumerator
-
Tries to get the next value.
- tryPipelineIn(Out<Object>, Out<AbstractPipeProcessor>) - Method in class enumj.PipeEnumerator
-
Tries to obtain obtain an input value for the pipeline.
- tryPipelineOut(Object, AbstractPipeProcessor, Out<Boolean>) - Method in class enumj.PipeEnumerator
-
Tries to process the given in value through the pipeline
and produce an output in value.
- union(Iterable<E>) - Method in interface enumj.Enumerable
-
Returns an Enumerable enumerating over the current elements and
over the given Iterable while avoiding duplicates.
- union(Iterator<? extends E>) - Method in interface enumj.Enumerator
-
Returns an enumerator enumerating over the current enumerator and
the provided enumerator, all duplicates removed.
- union(Iterable<? extends E>) - Method in interface enumj.Enumerator
-
Returns an enumerator enumerating over the current enumerator and
the provided Iterable, all duplicates removed.
- union(Enumeration<? extends E>) - Method in interface enumj.Enumerator
-
Returns an enumerator enumerating over the current enumerator and
the provided Enumeration, all duplicates removed.
- union(Stream<? extends E>) - Method in interface enumj.Enumerator
-
Returns an enumerator enumerating over the current enumerator and
the provided Stream, all duplicates removed.
- union(Spliterator<? extends E>) - Method in interface enumj.Enumerator
-
Returns an enumerator enumerating over the current enumerator and
the provided Spliterator, all duplicates removed.
- union(Supplier<Optional<E>>) - Method in interface enumj.Enumerator
-
Returns an enumerator enumerating over the current enumerator and
the elements supplied by the provided Supplier, all duplicates
removed.
- unionOn(E...) - Method in interface enumj.Enumerable
-
Returns an Enumerable enumerating over the current elements and
over the given elements while avoiding duplicates.
- unionOn(E...) - Method in interface enumj.Enumerator
-
Returns an enumerator enumerating over the current enumerator
and the given elements, all duplicates removed.
- zipAll(Iterable<? extends E>, Iterable<? extends E>...) - Method in interface enumj.Enumerable
-
Returns an Enumerable consisting of an array of Optional
objects containing elements from the current enumerator and
the given Iterable instances, while any has elements.
- zipAll(Iterator<? extends E>, Iterator<? extends E>...) - Method in interface enumj.Enumerator
-
Returns an enumerator consisting of an array of Optional
objects containing elements from the current enumerator and
the given Iterator instances, while any has elements.
- zipAll(Enumerable<E>, Iterable<? extends E>, Iterable<? extends E>...) - Static method in class enumj.PipeEnumerable
-
Returns an Enumerable that zips the elements of the given
enumerable with the elements of the first
Iterable and the elements of the rest of the given
Iterable instances.
- zipAll(Iterator<? extends E>, Iterator<? extends E>...) - Method in class enumj.PipeEnumerator
-
- zipAll(Iterator<E>, List<Iterator<E>>) - Method in class enumj.PipeEnumerator
-
Zips the elements of the first Iterator with the
elements of the rest of iterators.
- zipAny(Iterable<T>) - Method in interface enumj.Enumerable
-
Returns an Enumerable consisting of pairs of elements from the
current enumerator and the given Iterable, while any
of them has elements.
- zipAny(Iterator<T>) - Method in interface enumj.Enumerator
-
Returns an enumerator consisting of pairs of elements from the
current enumerator and the given Iterator, while any
of them has elements.
- zipBoth(Enumerable<T>) - Method in interface enumj.Enumerable
-
Returns an Enumerable consisting of pairs of elements from the
current enumerator and the given Iterable, while both
have elements.
- zipBoth(Iterator<T>) - Method in interface enumj.Enumerator
-
Returns an enumerator consisting of pairs of elements from the
current enumerator and the given Iterator, while both
have elements.
- zipLeft(Iterable<T>) - Method in interface enumj.Enumerable
-
Returns an Enumerable consisting of pairs of elements from the
current enumerator and the given Iterable, while the current
enumerator has elements.
- zipLeft(Iterator<T>) - Method in interface enumj.Enumerator
-
Returns an enumerator consisting of pairs of elements from the
current enumerator and the given Iterator, while the current
enumerator has elements.
- ZipPipeProcessor<E> - Class in enumj
-
Pipe processor that zips enumerated values together.
- ZipPipeProcessor(Iterator<E>, List<Iterator<E>>) - Constructor for class enumj.ZipPipeProcessor
-
Constructs a
ZipPipeProcessor that zips together the processed
element with elements from other
Iterator instances.
- zipRight(Iterable<T>) - Method in interface enumj.Enumerable
-
Returns an Enumerable consisting of pairs of elements from the
current enumerator and the given Iterable, while the provided
iterator has elements.
- zipRight(Iterator<T>) - Method in interface enumj.Enumerator
-
Returns an enumerator consisting of pairs of elements from the
current enumerator and the given Iterator, while the provided
iterator has elements.