- call() - Method in interface ix.IxScalarCallable
-
- cast(Class<R>) - Method in class ix.Ix
-
Cast the elements to the specified class.
- characters(CharSequence) - Static method in class ix.Ix
-
Emits all characters from the given CharSequence as integer values.
- characters(CharSequence, int, int) - Static method in class ix.Ix
-
Emits a range of characters from the given CharSequence as integer values.
- checkedCall(Callable<U>) - Static method in class ix.Ix
-
Calls the given callable and rethrows its exception
(as RuntimeException if necessary).
- clear() - Method in class ix.IxSourceQueuedIterator
-
- collect(Func0<C>, Action2<C, T>) - Method in class ix.Ix
-
Collect the elements into a collection via collector action and emit that collection
as a single item.
- collectToArray() - Method in class ix.Ix
-
Collects the elements of this sequence into an Object array.
- collectToList() - Method in class ix.Ix
-
Collects the elements of this sequence into a List.
- collectToMap(Func1<? super T, ? extends K>) - Method in class ix.Ix
-
Collects the elements of this sequence into a Map where the key is
determined from each element via the keySelector function; duplicates are
overwritten.
- collectToMap(Func1<? super T, ? extends K>, Func1<? super T, ? extends V>) - Method in class ix.Ix
-
Collects the elements of this sequence into a Map where the key is
determined from each element via the keySelector function and
the value is derived from the same element via the valueSelector function; duplicates are
overwritten.
- collectToMultimap(Func1<? super T, ? extends K>) - Method in class ix.Ix
-
Collects the elements of this sequence into a multi-Map where the key is
determined from each element via the keySelector function.
- collectToMultimap(Func1<? super T, ? extends K>, Func1<? super T, ? extends V>) - Method in class ix.Ix
-
Collects the elements of this sequence into a multi-Map where the key is
determined from each element via the keySelector function and
the value is derived from the same element via the valueSelector function.
- collectToSet() - Method in class ix.Ix
-
Collects the elements of this sequence into a Set.
- compose(Func1<? super Ix<T>, ? extends Iterable<? extends R>>) - Method in class ix.Ix
-
When the iterator() of the returned Ix is called, it calls the transformer function
with this Ix instance and emits the elements of the returned Iterable.
- concat(Iterable<? extends Iterable<? extends T>>) - Static method in class ix.Ix
-
Concatenates the elements of Iterable sources, provided as an Iterable itself, sequentially.
- concat(Iterable<? extends T>, Iterable<? extends T>) - Static method in class ix.Ix
-
Concatenates the elements of two Iterable sources sequentially
The result's iterator() forwards the remove() calls to the current iterator.
- concat(Iterable<? extends T>, Iterable<? extends T>, Iterable<? extends T>) - Static method in class ix.Ix
-
Concatenates the elements of three Iterable sources sequentially
The result's iterator() forwards the remove() calls to the current iterator.
- concat(Iterable<? extends T>, Iterable<? extends T>, Iterable<? extends T>, Iterable<? extends T>) - Static method in class ix.Ix
-
Concatenates the elements of three Iterable sources sequentially
The result's iterator() forwards the remove() calls to the current iterator.
- concatArray(Iterable<? extends T>...) - Static method in class ix.Ix
-
Concatenates the elements of Iterable sources, provided as an array, sequentially.
- concatMap(Func1<? super T, ? extends Iterable<? extends R>>) - Method in class ix.Ix
-
Maps each element from this sequence into subsequent Iterable sequences whose elmenents are
concatenated in order.
- concatWith(Iterable<? extends T>) - Method in class ix.Ix
-
Emits elements of this sequence followed by the elements of the other sequence.
- contains(Object) - Method in class ix.Ix
-
Emits true if the sequence contains the given Object, compared via null-safe
equals.
- count() - Method in class ix.Ix
-
Emits the number of elements in this sequence.
- countLong() - Method in class ix.Ix
-
Emits the number of elements, as a long, in this sequence.
- defaultIfEmpty(T) - Method in class ix.Ix
-
Emits the given value if this sequence is empty, streams this sequence otherwise.
- defer(Func0<? extends Iterable<? extends T>>) - Static method in class ix.Ix
-
Defers the generation of the actual Iterable till the iterator() is called on
the resulting Ix.
- distinct() - Method in class ix.Ix
-
Emits only distinct, never before seen elements (according to null-safe equals())
of this sequence.
- distinct(Func1<? super T, K>) - Method in class ix.Ix
-
Emits only distinct, never before seen keys extracted from elements
(according to null-safe equals()) of this sequence.
- distinctUntilChanged() - Method in class ix.Ix
-
Emits elements from this sequence if each element is different from the previous element
(according to a null-safe equals()), dropping elements that evaluate to the same as the previous.
- distinctUntilChanged(Pred2<? super T, ? super T>) - Method in class ix.Ix
-
Emits elements from this sequence if each element is different from the previous element
(according to a comparer), dropping elements that evaluate to the same as the previous.
- distinctUntilChanged(Func1<? super T, K>) - Method in class ix.Ix
-
Emits elements from this sequence if each element is different from the previous element
(according to a null-safe equals() of the extracted key), dropping elements that evaluate
to the same as the previous.
- done - Variable in class ix.IxBaseIterator
-
Indicates there are no more data available.
- doOnCompleted(Action0) - Method in class ix.Ix
-
Calls the given action after consumption of this sequence has completed, i.e., when
hasNext() of this Ix.iterator() returns false.
- doOnNext(Action1<? super T>) - Method in class ix.Ix
-
Calls the given action just before when the consumer calls next() of this Ix.iterator().
- filter(Pred<T>) - Method in class ix.Ix
-
Emits elements of this sequence which match the given predicate only.
- first() - Method in class ix.Ix
-
Returns the first element of this sequence.
- first(T) - Method in class ix.Ix
-
Returns the first element of this sequence or the defaultValue
if this sequence is empty.
- flatMap(Func1<? super T, ? extends Iterable<? extends R>>) - Method in class ix.Ix
-
Maps each element from this sequence into subsequent Iterable sequences whose elmenents are
concatenated in order.
- foreach(Action1<? super T>) - Method in class ix.Ix
-
Consumes the entire sequence and calls the given action with each value.
- foreach(Action2<? super U, S>, S) - Method in class ix.IxSourceQueuedIterator
-
- foreachWhile(Pred<? super T>) - Method in class ix.Ix
-
Consumes the entire sequence and calls the given predicate with each value;
which can stop the iteration by returning false.
- forloop(T, Pred<? super T>, Func1<? super T, ? extends T>, Func1<? super T, ? extends R>) - Static method in class ix.Ix
-
Generates a sequence of values via a generic indexed for-loop style construct;
the index starts with the given seed, checked via a condition (to terminate),
generated from the index via the selector and then a new index is generated via next.
- from(Iterable<T>) - Static method in class ix.Ix
-
Wraps the given Iterable source into an Ix instance (if
not already an Ix subclass).
- fromArray(T...) - Static method in class ix.Ix
-
Emits all the elements of the given array.
- fromArrayRange(int, int, T...) - Static method in class ix.Ix
-
Emits a range of elements from the given array.
- fromObject(Object) - Method in class ix.IxSourceQueuedIterator
-
Cast the object back to a typed value.
- ignoreElements() - Method in class ix.Ix
-
Runs through this sequence, ignoring all values until this sequence completes.
- intersect(Iterable<? extends T>) - Method in class ix.Ix
-
Emits distinct values of this and the other Iterables that are present in
both sequences.
- into(U) - Method in class ix.Ix
-
Consumes the entire sequence and adds each element into the given collection
that is also returned.
- isEmpty() - Method in class ix.IxSourceQueuedIterator
-
- it - Variable in class ix.IxSourceIterator
-
The upstream's iterator.
- ix - package ix
-
- Ix<T> - Class in ix
-
Base class and entry point for fluent Iterables.
- Ix() - Constructor for class ix.Ix
-
- IxBaseIterator<R> - Class in ix
-
A base iterator that manages
the state between hasNext() and the next() calls; plus defines
the remove() to throw UnsupportedOperationException.
- IxBaseIterator() - Constructor for class ix.IxBaseIterator
-
- IxScalarCallable<T> - Interface in ix
-
Marker interface to indicate a source that has exactly one constant
value, available for assembly-time optimizations.
- IxSourceIterator<T,R> - Class in ix
-
A base iterator that references an upstream iterator and manages
the state between hasNext() and the next() calls; plus defines
the remove() to throw UnsupportedOperationException.
- IxSourceIterator(Iterator<T>) - Constructor for class ix.IxSourceIterator
-
- IxSourceQueuedIterator<T,U,R> - Class in ix
-
A base iterator that extends a custom ArrayDeque, references an upstream iterator
and manages the state between hasNext() and the next() calls; plus defines
the remove() to throw UnsupportedOperationException.
- IxSourceQueuedIterator(Iterator<T>) - Constructor for class ix.IxSourceQueuedIterator
-
- IxTransform<T,R> - Interface in ix
-
Functional interface that allows transforming an
upstream Iterator for each downstream next() call.
- map(Func1<? super T, ? extends R>) - Method in class ix.Ix
-
Maps each element of this sequence to some other value.
- max(Comparator<? super T>) - Method in class ix.Ix
-
Emits the first maximum element according to the given comparator.
- max() - Method in class ix.Ix
-
Emits the first maximum element according to their natural order.
- maxInt() - Method in class ix.Ix
-
Returns the first maximum integer value.
- maxLong() - Method in class ix.Ix
-
Returns the first maximum long value.
- merge(Iterable<? extends Iterable<? extends T>>) - Static method in class ix.Ix
-
Concatenates the elements of Iterable sources, provided as an Iterable itself, sequentially.
- mergeArray(Iterable<? extends T>...) - Static method in class ix.Ix
-
Concatenates the elements of Iterable sources, provided as an array, sequentially.
- mergeWith(Iterable<? extends T>) - Method in class ix.Ix
-
Emits elements of this sequence followed by the elements of the other sequence.
- min(Comparator<? super T>) - Method in class ix.Ix
-
Emits the first minimum element according to the given comparator.
- min() - Method in class ix.Ix
-
Emits the first minimum element according to their natural order.
- minInt() - Method in class ix.Ix
-
Returns the first minimum integer value.
- minLong() - Method in class ix.Ix
-
Returns the first minimum long value.
- moveNext() - Method in class ix.IxBaseIterator
-
Move the stream forward by a single element.
- moveNext(Iterator<T>, Action1<? super R>) - Method in interface ix.IxTransform
-
- peek() - Method in class ix.IxSourceQueuedIterator
-
- poll() - Method in class ix.IxSourceQueuedIterator
-
- positive(int, String) - Static method in class ix.Ix
-
Checks if the given value is positive and returns it; throws
an IllegalArgumentException otherwise
- Pred<T> - Interface in ix
-
A predicate functional interface to test a value and return a primitive
boolean.
- Pred0 - Interface in ix
-
A supplier of a single boolean value.
- Pred2<T,U> - Interface in ix
-
A predicate functional interface to test a value and return a primitive
boolean.
- print() - Method in class ix.Ix
-
Prints the elements of this sequence to the console, separated
by a comma+space and with a line break after roughly 80 characters.
- print(CharSequence, int) - Method in class ix.Ix
-
Prints the elements of this sequence to the console, separated
by the given separator and with a line break after roughly the
given charsPerLine amount.
- println() - Method in class ix.Ix
-
Prints each element of this sequence into a new line on the console.
- println(CharSequence) - Method in class ix.Ix
-
Prints each element of this sequence into a new line on the console, prefixed
by the given character sequence.
- publish() - Method in class ix.Ix
-
Shares an underlying Iterator that is consumed only once and each created iterator() that calls
next() will receive the elements; other iterator() instances may receive different or no elements
at all.
- publish(Func1<? super Ix<T>, ? extends Iterable<? extends R>>) - Method in class ix.Ix
-
Shares an Iterator, exposed as an Ix sequence, for the duration of the transform function called
for each iterator() invocation and emits elements of the resulting iterable sequence of the function.
- range(int, int) - Static method in class ix.Ix
-
Emits a range of incrementing integer values, starting from start and
up to count times.
- reduce(Func2<T, T, T>) - Method in class ix.Ix
-
Reduces the elements of this sequence into a single value via a reducer function.
- reduce(Func0<C>, Func2<C, T, C>) - Method in class ix.Ix
-
Given a per-iterator() initial value, reduces the elements of this sequence into a single
value via a reducer function.
- remove(Pred<? super T>) - Method in class ix.Ix
-
Removes those elements via Iterator.remove() from this sequence that match the
given predicate.
- remove() - Method in class ix.IxBaseIterator
-
- removeAll() - Method in class ix.Ix
-
Removes all elements by repeatedly calling this sequence's Iterator.remove().
- removeAll(Pred<? super T>) - Method in class ix.Ix
-
Consumes this Iterable and removes all elements for
which the predicate returns true; in other words,
remove those elements of a mutable source that match
the predicate.
- repeat() - Method in class ix.Ix
-
Repeats this sequence indefinitely.
- repeat(long) - Method in class ix.Ix
-
Repeats this sequence at most the given number of times.
- repeat(Pred0) - Method in class ix.Ix
-
Repeats this sequence if the given predicate returns true after the sequence
completes in a round.
- repeat(long, Pred0) - Method in class ix.Ix
-
Repeats this sequence if the given predicate returns true after the sequence
completes in a round or at most the given number of times.
- repeatValue(T) - Static method in class ix.Ix
-
Repeats the given value indefinitely.
- repeatValue(T, long) - Static method in class ix.Ix
-
Repeats the given value at most count times.
- repeatValue(T, Pred0) - Static method in class ix.Ix
-
Repeats the given value until the given predicate returns true.
- repeatValue(T, long, Pred0) - Static method in class ix.Ix
-
Repeats the given value at most count times or until the given predicate returns true.
- replay() - Method in class ix.Ix
-
Caches and replays all elements of this sequence to consumers of this' iterator().
- replay(int) - Method in class ix.Ix
-
Caches and replays the last size elements of this sequence to consumers of this' iterator().
- replay(Func1<? super Ix<T>, ? extends Iterable<? extends R>>) - Method in class ix.Ix
-
Caches and replays the elements of this sequence for the duration of the given transform function
without consuming this sequence multiple times.
- replay(int, Func1<? super Ix<T>, ? extends Iterable<? extends R>>) - Method in class ix.Ix
-
Caches and replays the the last size elements of this sequence for the duration of the given transform function
without consuming this sequence multiple times.
- retain(Pred<? super T>) - Method in class ix.Ix
-
Removes those elements via Iterator.remove() from this sequence that don't match the
given predicate.
- retainAll(Pred<? super T>) - Method in class ix.Ix
-
Consumes this Iterable and removes all elements for
which the predicate returns false; in other words,
retain those elements of a mutable source that match
the predicate.
- reverse() - Method in class ix.Ix
-
Plays this sequence in reverse.
- run() - Method in class ix.Ix
-
Iterates over this instance, dropping all values it produces.
- scan(Func2<T, T, T>) - Method in class ix.Ix
-
Performs a running accumulation, that is, returns intermediate elements returned by the
scanner function.
- scan(Func0<R>, Func2<R, T, R>) - Method in class ix.Ix
-
Performs a running accumulation, that is, returns intermediate elements returned by the
scanner function, starting with a per-iterator initial value.
- sequenceEqual(Iterable<? extends T>) - Method in class ix.Ix
-
Determines if two sequences have the same elements in the same order and are the same length based
on null-safe object equality.
- sequenceEqual(Iterable<? extends T>, Pred2<? super T, ? super T>) - Method in class ix.Ix
-
Determines if two sequences have the same elements in the same order and are the same length based
on the given comparer's boolean value.
- single() - Method in class ix.Ix
-
Returns the single element of this sequence or throws a NoSuchElementException
if this sequence is empty or IndexOutOfBoundsException if this sequence has more
than on element
- single(T) - Method in class ix.Ix
-
Returns the single element of this sequence, defalutValue
if this sequence is empty or IndexOutOfBoundsException if this sequence has more
than one element
- skip(int) - Method in class ix.Ix
-
Skips the first n elements from this sequence.
- skipLast(int) - Method in class ix.Ix
-
Skips the last n elements from this sequence.
- skipWhile(Pred<? super T>) - Method in class ix.Ix
-
Skips the first elements while the given predicate returns true; once it returns false
all subsequent elements are emitted.
- split(String, String) - Static method in class ix.Ix
-
Emits a sequence of substring of a string split by the given separator.
- startWith(T...) - Method in class ix.Ix
-
Emits elements of the given array followed by the elements of this sequence.
- STOP - Static variable in interface ix.IxTransform
-
- subscribe() - Method in class ix.Ix
-
Iterates over this instance, dropping all values it produces.
- subscribe(Action1<? super T>) - Method in class ix.Ix
-
Iterates over this sequence and calls the given onNext action with
each element.
- subscribe(Action1<? super T>, Action1<Throwable>) - Method in class ix.Ix
-
Iterates over this sequence and calls the given onNext action with
each element and calls the onError with any exception thrown by the iteration
or the onNext action.
- subscribe(Action1<? super T>, Action1<Throwable>, Action0) - Method in class ix.Ix
-
Iterates over this sequence and calls the given onNext action with
each element and calls the onError with any exception thrown by the iteration
or the onNext action; otherwise calls the onCompleted action when the sequence completes
without exception.
- subscribe(Observer<? super T>) - Method in class ix.Ix
-
Consumes this sequence and calls the appropriate onXXX method on the given Observer instance.
- subscribe(Subscriber<? super T>) - Method in class ix.Ix
-
Consumes this sequence and calls the appropriate onXXX method on the given Subscriber instance
as long as it has not unsubscribed.
- sumInt() - Method in class ix.Ix
-
Sums values of this sequence as integer.
- sumLong() - Method in class ix.Ix
-
Sums values of this sequence as long.
- switchIfEmpty(Iterable<? extends T>) - Method in class ix.Ix
-
Emits the elements of the other sequence if this sequence is empty.
- take(int) - Method in class ix.Ix
-
Emits the first n elements (or less) of this sequence.
- takeLast(int) - Method in class ix.Ix
-
Emits the last n elements (or fewer) of this sequence.
- takeUntil(Pred<? super T>) - Method in class ix.Ix
-
Take elements from this sequence while the given predicate returns true
for the current element (checked after emission of that element).
- takeWhile(Pred<? super T>) - Method in class ix.Ix
-
Take elements from this sequence until the given predicate returns true
for the current element (checked before emission of that element).
- test(T) - Method in interface ix.Pred
-
Test the given value.
- test(T, U) - Method in interface ix.Pred2
-
Test the given value.
- toArray() - Method in class ix.Ix
-
Collects the elements of this sequence into an Object array.
- toArray(U[]) - Method in class ix.Ix
-
Collects the elements of this sequence into a generic array provided.
- toList() - Method in class ix.Ix
-
Collects the elements of this sequence into a List.
- toLong() - Method in class ix.Ix
-
Maps this sequence of numbers into a sequence of longs.
- toMap(Func1<? super T, ? extends K>) - Method in class ix.Ix
-
Collects the elements of this sequence into a Map where the key is
determined from each element via the keySelector function; duplicates are
overwritten.
- toMap(Func1<? super T, ? extends K>, Func1<? super T, ? extends V>) - Method in class ix.Ix
-
Collects the elements of this sequence into a Map where the key is
determined from each element via the keySelector function and
the value is derived from the same element via the valueSelector function; duplicates are
overwritten.
- toMultimap(Func1<? super T, ? extends K>) - Method in class ix.Ix
-
Collects the elements of this sequence into a multi-Map where the key is
determined from each element via the keySelector function.
- toMultimap(Func1<? super T, ? extends K>, Func1<? super T, ? extends V>) - Method in class ix.Ix
-
Collects the elements of this sequence into a multi-Map where the key is
determined from each element via the keySelector function and
the value is derived from the same element via the valueSelector function.
- toObject(U) - Method in class ix.IxSourceQueuedIterator
-
Cast the value into an object and turn
a null value into a sentinel value.
- toSet() - Method in class ix.Ix
-
Collects the elements of this sequence into a Set.
- transform(IxTransform<T, R>) - Method in class ix.Ix
-
Allows working with the Iterator of this sequence and emit elements in
a more flexible way
The result's iterator() doesn't support remove().