- aggregate(AnyM<T>) - Method in interface com.aol.cyclops.monad.AnyM
-
Aggregate the contents of this Monad and the supplied Monad
- aggregateUntyped(AnyM<?>) - Method in interface com.aol.cyclops.monad.AnyM
-
- allMatch(Predicate<? super T>) - Method in interface com.aol.cyclops.sequence.future.FutureOperations
-
Perform an asynchronous All Match operation
- allMatch(Predicate<? super T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
True if predicate matches all elements when Monad converted to a Stream
- AnyM<T> - Interface in com.aol.cyclops.monad
-
Wrapper for Any Monad type
- anyM() - Method in interface com.aol.cyclops.sequence.SequenceM
-
- anyMatch(Predicate<? super T>) - Method in interface com.aol.cyclops.sequence.future.FutureOperations
-
Perform an asynchronous Any Match operation
- anyMatch(Predicate<? super T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
True if a single element matches when Monad converted to a Stream
- AnyMFactory - Interface in com.aol.cyclops.monad
-
- AnyMFactory.MetaFactory - Class in com.aol.cyclops.monad
-
- append(T...) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Append values to the end of this SequenceM
- appendStream(Stream<T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Append Stream to this SequenceM
- applyM(AnyM<Function<? super T, ? extends R>>) - Method in interface com.aol.cyclops.monad.AnyM
-
Apply function/s inside supplied Monad to data in current Monad
e.g.
- AsDecomposable - Class in com.aol.cyclops.objects
-
- AsDecomposable() - Constructor for class com.aol.cyclops.objects.AsDecomposable
-
- asDecomposable(Object) - Static method in class com.aol.cyclops.objects.AsDecomposable
-
Coerce / wrap an Object as a Decomposable instance
This adds an unapply method that returns an interable over the supplied
objects fields.
- AsDecomposable.CoercedDecomposable - Class in com.aol.cyclops.objects
-
- asSequence() - Method in interface com.aol.cyclops.monad.AnyM
-
Wrap this Monad's contents as a Sequence without disaggreating it.
- AsStreamable - Class in com.aol.cyclops.sequence.streamable
-
- AsStreamable() - Constructor for class com.aol.cyclops.sequence.streamable.AsStreamable
-
- averageDouble(ToDoubleFunction<T>) - Method in interface com.aol.cyclops.sequence.future.DoubleOperators
-
Perform an asynchronous average operation
- averageInt(ToIntFunction<T>) - Method in interface com.aol.cyclops.sequence.future.IntOperators
-
Perform an asynchronous average operation
- averageLong(ToLongFunction<T>) - Method in interface com.aol.cyclops.sequence.future.LongOperators
-
Perform an asynchronous average operation
- batchBySize(int) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Batch elements in a Stream by size into Lists
- batchBySize(int, Supplier<C>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Batch elements in a Stream by size into a collection created by the supplied factory
- batchBySizeAndTime(int, long, TimeUnit) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Batch elements by size into a List
- batchBySizeAndTime(int, long, TimeUnit, Supplier<C>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Batch elements by size into a collection created by the supplied factory
- batchByTime(long, TimeUnit) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Batch elements in a Stream by time period
- batchByTime(long, TimeUnit, Supplier<C>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Batch elements by time into a collection created by the supplied factory
- batchUntil(Predicate<T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Create a SequenceM batched by List, where each batch is populated until the predicate holds
- batchUntil(Predicate<T>, Supplier<C>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Create a SequenceM batched by a Collection, where each batch is populated until the predicate holds
- batchWhile(Predicate<T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Create a SequenceM batched by List, where each batch is populated while the predicate holds
- batchWhile(Predicate<T>, Supplier<C>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Create a SequenceM batched by a Collection, where each batch is populated while the predicate holds
- bind(Function<? super T, ?>) - Method in interface com.aol.cyclops.monad.AnyM
-
Perform a looser typed flatMap / bind operation
The return type can be another type other than the host type
- cast(Class<U>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Cast all elements in a stream to a given type, possibly throwing a
ClassCastException
.
- characteristics() - Method in class com.aol.cyclops.sequence.spliterators.ReversingArraySpliterator
-
- characteristics() - Method in class com.aol.cyclops.sequence.spliterators.ReversingListSpliterator
-
- characteristics() - Method in class com.aol.cyclops.sequence.spliterators.ReversingRangeSpliterator
-
- CoercedDecomposable() - Constructor for class com.aol.cyclops.objects.AsDecomposable.CoercedDecomposable
-
- collect(Collector<? super T, A, R>) - Method in interface com.aol.cyclops.monad.AnyM
-
Collect the contents of the monad wrapped by this AnyM into supplied collector
- collect(Collector<? super T, A, R>) - Method in interface com.aol.cyclops.sequence.future.FutureOperations
-
Asynchronously perform a Stream collection
- collect(Supplier<R>, BiConsumer<R, ? super T>, BiConsumer<R, R>) - Method in interface com.aol.cyclops.sequence.future.FutureOperations
-
Asynchronously perform a Stream collection
- collectIterable(Iterable<Collector>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Apply multiple Collectors, simultaneously to a Stream
- collectStream(Stream<Collector>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Apply multiple collectors Simulataneously to this Monad
- com.aol.cyclops.monad - package com.aol.cyclops.monad
-
- com.aol.cyclops.objects - package com.aol.cyclops.objects
-
- com.aol.cyclops.sequence - package com.aol.cyclops.sequence
-
- com.aol.cyclops.sequence.future - package com.aol.cyclops.sequence.future
-
- com.aol.cyclops.sequence.reactivestreams - package com.aol.cyclops.sequence.reactivestreams
-
- com.aol.cyclops.sequence.spliterators - package com.aol.cyclops.sequence.spliterators
-
- com.aol.cyclops.sequence.streamable - package com.aol.cyclops.sequence.streamable
-
- combiner() - Method in interface com.aol.cyclops.sequence.Monoid
-
- concat(Stream<T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
- concat(T) - Method in interface com.aol.cyclops.sequence.SequenceM
-
- concat(T...) - Method in interface com.aol.cyclops.sequence.SequenceM
-
- connect() - Method in interface com.aol.cyclops.sequence.HotStream
-
- connect(Queue<T>) - Method in interface com.aol.cyclops.sequence.HotStream
-
- connectTo(Queue<T>, Function<SequenceM<T>, R>) - Method in interface com.aol.cyclops.sequence.HotStream
-
- copy() - Method in interface com.aol.cyclops.sequence.spliterators.ReversableSpliterator
-
- copy() - Method in class com.aol.cyclops.sequence.spliterators.ReversingArraySpliterator
-
- copy() - Method in class com.aol.cyclops.sequence.spliterators.ReversingListSpliterator
-
- copy() - Method in class com.aol.cyclops.sequence.spliterators.ReversingRangeSpliterator
-
- count() - Method in interface com.aol.cyclops.sequence.future.FutureOperations
-
Asynchronously perform a Stream count
- crossJoin(Stream<U>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
- cycle(int) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Convert to a Stream with the values repeated specified times
- cycle() - Method in interface com.aol.cyclops.sequence.SequenceM
-
Convert to a Stream with the values infinitely cycled
- cycle(Monoid<T>, int) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Convert to a Stream with the result of a reduction operation repeated
specified times
- cycle(Class<R>, int) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Convert to a Stream, repeating the resulting structure specified times
and lifting all values to the specified Monad type
- cycle(int, Streamable<U>) - Static method in class com.aol.cyclops.sequence.SeqUtils
-
Create a Stream that finitely cycles the provided Streamable, provided number of times
- cycleUntil(Predicate<? super T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Repeat in a Stream until specified predicate holds
- cycleWhile(Predicate<? super T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Repeat in a Stream while specified predicate holds
- CyclopsSubscriber<T> - Interface in com.aol.cyclops.sequence.reactivestreams
-
- filter(Predicate<? super T>) - Method in interface com.aol.cyclops.monad.AnyM
-
- filter(Predicate<? super T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
- findAny() - Method in interface com.aol.cyclops.sequence.future.FutureOperations
-
Perform an asynchronous findAny operation
- findAny() - Method in interface com.aol.cyclops.sequence.SequenceM
-
- findFirst() - Method in interface com.aol.cyclops.sequence.future.FutureOperations
-
Perform an asynchronous findAny operation
- findFirst() - Method in interface com.aol.cyclops.sequence.SequenceM
-
- firstValue() - Method in interface com.aol.cyclops.sequence.future.FutureOperations
-
Perform an asynchronous findAny operation
- firstValue() - Method in interface com.aol.cyclops.sequence.SequenceM
-
assertThat(SequenceM.of(1,2,3,4)
.map(u->{throw new RuntimeException();})
.recover(e->"hello")
.firstValue(),equalTo("hello"));
- fixedDelay(long, TimeUnit) - Method in interface com.aol.cyclops.sequence.SequenceM
-
emit elements after a fixed delay
- flatMap(Function<? super T, AnyM<? extends R>>) - Method in interface com.aol.cyclops.monad.AnyM
-
flatMap operation
- flatMap(Function<? super T, ? extends Stream<? extends R>>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
flatMap operation
- flatMapAnyM(Function<? super T, AnyM<? extends R>>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Allows flatMap return type to be any Monad type
- flatMapBufferedReader(Function<? super T, BufferedReader>) - Method in interface com.aol.cyclops.monad.AnyM
-
Perform a flatMap operation where the result will be a flattened stream of Strings
from the text loaded from the supplied BufferedReaders
- flatMapBufferedReader(Function<? super T, BufferedReader>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Perform a flatMap operation where the result will be a flattened stream of Strings
from the text loaded from the supplied BufferedReaders
- flatMapCharSequence(Function<? super T, CharSequence>) - Method in interface com.aol.cyclops.monad.AnyM
-
Perform a flatMap operation where the result will be a flattened stream of Characters
from the CharSequence returned by the supplied function.
- flatMapCharSequence(Function<? super T, CharSequence>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Perform a flatMap operation where the result will be a flattened stream of Characters
from the CharSequence returned by the supplied function.
- flatMapCollection(Function<? super T, Collection<? extends R>>) - Method in interface com.aol.cyclops.monad.AnyM
-
flatMapping to a Stream will result in the Stream being converted to a List, if the host Monad
type is not a Stream (or Stream like type).
- flatMapCollection(Function<? super T, Collection<? extends R>>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
FlatMap where the result is a Collection, flattens the resultant collections into the
host SequenceM
- flatMapCompletableFuture(Function<? super T, CompletableFuture<? extends R>>) - Method in interface com.aol.cyclops.monad.AnyM
-
- flatMapCompletableFuture(Function<? super T, CompletableFuture<? extends R>>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
flatMap to CompletableFuture - will block until Future complete, although (for non-blocking behaviour use AnyM
wrapping CompletableFuture and flatMap to Stream there)
- flatMapFile(Function<? super T, File>) - Method in interface com.aol.cyclops.monad.AnyM
-
Perform a flatMap operation where the result will be a flattened stream of Strings
from the text loaded from the supplied files.
- flatMapFile(Function<? super T, File>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Perform a flatMap operation where the result will be a flattened stream of Strings
from the text loaded from the supplied files.
- flatMapOptional(Function<? super T, Optional<? extends R>>) - Method in interface com.aol.cyclops.monad.AnyM
-
Convenience method to allow method reference support, when flatMap return type is a Optional
- flatMapOptional(Function<? super T, Optional<? extends R>>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
flatMap to optional - will result in null values being removed
- flatMapSequenceM(Function<? super T, SequenceM<? extends R>>) - Method in interface com.aol.cyclops.monad.AnyM
-
- flatMapStream(Function<? super T, BaseStream<? extends R, ?>>) - Method in interface com.aol.cyclops.monad.AnyM
-
Convenience method to allow method reference support, when flatMap return type is a Stream
- flatMapStream(Function<? super T, BaseStream<? extends R, ?>>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
flatMap operation
- flatMapStreamable(Function<? super T, Streamable<R>>) - Method in interface com.aol.cyclops.monad.AnyM
-
Convenience method to allow method reference support, when flatMap return type is a Streamable
- flatMapURL(Function<? super T, URL>) - Method in interface com.aol.cyclops.monad.AnyM
-
Perform a flatMap operation where the result will be a flattened stream of Strings
from the text loaded from the supplied URLs
- flatMapURL(Function<? super T, URL>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Perform a flatMap operation where the result will be a flattened stream of Strings
from the text loaded from the supplied URLs
- flatten() - Method in interface com.aol.cyclops.monad.AnyM
-
join / flatten one level of a nested hierarchy
- flatten() - Method in interface com.aol.cyclops.sequence.SequenceM
-
join / flatten one level of a nested hierarchy
- foldLeft(U, BiFunction<U, ? super T, U>) - Method in interface com.aol.cyclops.sequence.future.FutureOperations
-
Perform an asynchronous foldLeft operation
- foldLeft(Monoid<T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
SequenceM.of("a","b","c").foldLeft(Reducers.toString(""));
// "abc"
- foldLeft(T, BinaryOperator<T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
foldLeft : immutable reduction from left to right
- foldLeftMapToType(Monoid<T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Attempt to map this Monad to the same type as the supplied Monoid (using mapToType on the monoid interface)
Then use Monoid to reduce values
- foldRight(U, BiFunction<? super T, U, U>) - Method in interface com.aol.cyclops.sequence.future.FutureOperations
-
Perform an asynchronous foldRight operation
- foldRight(Monoid<T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
SequenceM.of("a","b","c").foldRight(Reducers.toString(""));
// "cab"
- foldRight(T, BinaryOperator<T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Immutable reduction from right to left
- foldRightMapToType(Monoid<T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Attempt to map this Monad to the same type as the supplied Monoid (using mapToType on the monoid interface)
Then use Monoid to reduce values
- forEach(Consumer<T>) - Method in interface com.aol.cyclops.sequence.future.FutureOperations
-
- fromArray(T...) - Static method in interface com.aol.cyclops.monad.AnyM
-
Create an AnyM wrapping a Stream of the supplied data
- fromCollection(Collection<T>) - Static method in interface com.aol.cyclops.monad.AnyM
-
- fromCompletableFuture(CompletableFuture<T>) - Static method in interface com.aol.cyclops.monad.AnyM
-
- fromDoubleStream(DoubleStream) - Static method in interface com.aol.cyclops.monad.AnyM
-
- fromDoubleStream(DoubleStream) - Static method in interface com.aol.cyclops.sequence.SequenceM
-
Construct a Sequence from a Stream
- fromFile(File) - Static method in interface com.aol.cyclops.monad.AnyM
-
- fromIntStream(IntStream) - Static method in interface com.aol.cyclops.monad.AnyM
-
- fromIntStream(IntStream) - Static method in interface com.aol.cyclops.sequence.SequenceM
-
Construct a Sequence from a Stream
- fromIterable(Iterable<T>) - Static method in interface com.aol.cyclops.monad.AnyM
-
- fromIterable(Iterable<T>) - Static method in interface com.aol.cyclops.sequence.SequenceM
-
Construct a Sequence from an Iterable
- fromIterable(Iterable<T>) - Static method in class com.aol.cyclops.sequence.streamable.AsStreamable
-
- fromIterable(Iterable<T>) - Static method in interface com.aol.cyclops.sequence.streamable.Streamable
-
(Lazily) Construct a Streamable from an Iterable.
- fromList(List<T>) - Static method in interface com.aol.cyclops.monad.AnyM
-
Create an AnyM from a List
This AnyM will convert the List to a Stream under the covers, but will rematerialize the Stream as List
if wrap() is called
- fromList(List<T>) - Static method in interface com.aol.cyclops.sequence.SequenceM
-
Construct a Sequence from a List (prefer this method if the source is a list,
as it allows more efficient Stream reversal).
- fromLongStream(LongStream) - Static method in interface com.aol.cyclops.monad.AnyM
-
- fromLongStream(LongStream) - Static method in interface com.aol.cyclops.sequence.SequenceM
-
Construct a Sequence from a Stream
- fromObject(Object) - Static method in class com.aol.cyclops.sequence.streamable.AsStreamable
-
- fromOptional(Optional<T>) - Static method in interface com.aol.cyclops.monad.AnyM
-
- fromOptional(OptionalDouble) - Static method in interface com.aol.cyclops.monad.AnyM
-
- fromOptional(OptionalLong) - Static method in interface com.aol.cyclops.monad.AnyM
-
- fromOptional(OptionalInt) - Static method in interface com.aol.cyclops.monad.AnyM
-
- fromRange(int, int) - Static method in interface com.aol.cyclops.monad.AnyM
-
Construct an AnyM instance that wraps a range from start (inclusive) to end (exclusive) provided
The AnyM will contain a SequenceM over the spefied range
- fromSet(Set<T>) - Static method in interface com.aol.cyclops.monad.AnyM
-
Create an AnyM from a Set
This AnyM will convert the Set to a Stream under the covers, but will rematerialize the Stream as Set
if wrap() is called
- fromStream(Stream<T>) - Static method in interface com.aol.cyclops.monad.AnyM
-
- fromStream(Stream<T>) - Static method in interface com.aol.cyclops.sequence.SequenceM
-
Construct a Sequence from a Stream
- fromStream(Stream<T>) - Static method in class com.aol.cyclops.sequence.streamable.AsStreamable
-
- fromStream(Stream<T>) - Static method in interface com.aol.cyclops.sequence.streamable.Streamable
-
(Lazily) Construct a Streamable from a Stream.
- fromStreamable(Streamable<T>) - Static method in interface com.aol.cyclops.monad.AnyM
-
Wrap a Streamable inside an AnyM
- fromURL(URL) - Static method in interface com.aol.cyclops.monad.AnyM
-
- FutureOperations<T> - Interface in com.aol.cyclops.sequence.future
-
- futureOperations(Executor) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Access asynchronous terminal operations (each returns a Future)
- map(Function<? super T, ? extends R>) - Method in interface com.aol.cyclops.monad.AnyM
-
- map(Function<? super T, ? extends R>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
- mapReduce(Stream) - Method in interface com.aol.cyclops.sequence.Monoid
-
Map a given Stream to required type (via mapToType method), then
reduce using this monoid
Example of multiple reduction using multiple Monoids and PowerTuples
- mapReduce(Monoid<R>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Attempt to map this Sequence to the same type as the supplied Monoid (Reducer)
Then use Monoid to reduce values
- mapReduce(Function<? super T, ? extends R>, Monoid<R>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Attempt to map this Monad to the same type as the supplied Monoid, using supplied function
Then use Monoid to reduce values
- mapToType(Stream) - Method in interface com.aol.cyclops.sequence.Monoid
-
- max(Comparator<? super T>) - Method in interface com.aol.cyclops.sequence.future.FutureOperations
-
Perform an asyncrhonous min operation
- max(Comparator<? super T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
- maxBy(Function<T, U>) - Method in interface com.aol.cyclops.sequence.future.FutureOperations
-
Asynchronously capture the maximum value in this stream using the provided function
- maxBy(Function<T, C>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Extract the maximum as determined by the supplied function
- maxDouble(ToDoubleFunction<T>) - Method in interface com.aol.cyclops.sequence.future.DoubleOperators
-
Perform an asynchronous max operation
- maxInt(ToIntFunction<T>) - Method in interface com.aol.cyclops.sequence.future.IntOperators
-
Perform an asynchronous max operation
- maxLong(ToLongFunction<T>) - Method in interface com.aol.cyclops.sequence.future.LongOperators
-
Perform an asynchronous max operation
- MetaFactory() - Constructor for class com.aol.cyclops.monad.AnyMFactory.MetaFactory
-
- MetaFactory() - Constructor for class com.aol.cyclops.sequence.SequenceMFactory.MetaFactory
-
- min(Comparator<? super T>) - Method in interface com.aol.cyclops.sequence.future.FutureOperations
-
Perform an asyncrhonous min operation
- min(Comparator<? super T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
- minBy(Function<T, U>) - Method in interface com.aol.cyclops.sequence.future.FutureOperations
-
Asynchronously capture the minimum value in this stream using the provided function
- minBy(Function<T, C>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Extract the minimum as determined by supplied function
- minDouble(ToDoubleFunction<T>) - Method in interface com.aol.cyclops.sequence.future.DoubleOperators
-
Perform an asynchronous min operation
- minInt(ToIntFunction<T>) - Method in interface com.aol.cyclops.sequence.future.IntOperators
-
Perform an asynchronous min operation
- minLong(ToLongFunction<T>) - Method in interface com.aol.cyclops.sequence.future.LongOperators
-
Perform an asynchronous min operation
- monad() - Method in interface com.aol.cyclops.monad.AnyM
-
- monad(Object) - Method in interface com.aol.cyclops.monad.AnyMFactory
-
- Monoid<T> - Interface in com.aol.cyclops.sequence
-
An interoperability trait for Monoids
Also inteded for use with Java 8 Streams (reduce method)
Practically the method signature to reduce matches the Monoid interface
Monoids could regrarded as immutable equivalents to JDK Collectors for Immutable Reduction
- range(int, int) - Static method in interface com.aol.cyclops.sequence.SequenceM
-
Create an efficiently reversable Sequence that produces the integers between start
and end
- ReactiveStreamsLoader - Class in com.aol.cyclops.sequence.reactivestreams
-
- ReactiveStreamsLoader() - Constructor for class com.aol.cyclops.sequence.reactivestreams.ReactiveStreamsLoader
-
- ReactiveStreamsPublisher<T> - Interface in com.aol.cyclops.sequence.reactivestreams
-
- ReactiveStreamsSubscriber<T> - Interface in com.aol.cyclops.sequence.reactivestreams
-
- recover(Function<Throwable, T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Recover from an exception with an alternative value
- recover(Class<EX>, Function<EX, T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Recover from a particular exception type
- reduce(U, BiFunction<U, ? super T, U>, BinaryOperator<U>) - Method in interface com.aol.cyclops.sequence.future.FutureOperations
-
Asynchronously perform a Stream reduction
- reduce(BinaryOperator<T>) - Method in interface com.aol.cyclops.sequence.future.FutureOperations
-
Asynchronously perform a Stream reduction
- reduce(T, BinaryOperator<T>) - Method in interface com.aol.cyclops.sequence.future.FutureOperations
-
Asynchronously perform a Stream reduction
- reduce(Stream<T>) - Method in interface com.aol.cyclops.sequence.Monoid
-
- reduce(Monoid<T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
SequenceM.of("hello","2","world","4").reduce(Reducers.toString(","));
//hello,2,world,4
- reduce(BinaryOperator<T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
- reduce(T, BinaryOperator<T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
- reduce(U, BiFunction<U, ? super T, U>, BinaryOperator<U>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
- reduce(Stream<Monoid<T>>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Reduce with multiple reducers in parallel
NB if this Monad is an Optional [Arrays.asList(1,2,3)] reduce will operate on the Optional as if the list was one value
To reduce over the values on the list, called streamedMonad() first.
- reduce(Iterable<Monoid<T>>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Reduce with multiple reducers in parallel
NB if this Monad is an Optional [Arrays.asList(1,2,3)] reduce will operate on the Optional as if the list was one value
To reduce over the values on the list, called streamedMonad() first.
- reduceM(Monoid<AnyM<T>>) - Method in interface com.aol.cyclops.monad.AnyM
-
- reduceMCompletableFuture(Monoid<CompletableFuture<T>>) - Method in interface com.aol.cyclops.monad.AnyM
-
- reduceMOptional(Monoid<Optional<T>>) - Method in interface com.aol.cyclops.monad.AnyM
-
Perform a reduction where NT is a (native) Monad type
e.g.
- reduceMStream(Monoid<Stream<T>>) - Method in interface com.aol.cyclops.monad.AnyM
-
- reduceMStreamable(Monoid<Streamable<T>>) - Method in interface com.aol.cyclops.monad.AnyM
-
- reducer() - Method in interface com.aol.cyclops.sequence.Monoid
-
- Reducers - Class in com.aol.cyclops.sequence
-
- Reducers() - Constructor for class com.aol.cyclops.sequence.Reducers
-
- replicateM(int) - Method in interface com.aol.cyclops.monad.AnyM
-
Replicate given Monad
- retry(Function<T, R>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Retry a transformation if it fails.
- reveresedSequenceM() - Method in interface com.aol.cyclops.sequence.streamable.Streamable
-
- reveresedStream() - Method in interface com.aol.cyclops.sequence.streamable.Streamable
-
- ReversableSpliterator - Interface in com.aol.cyclops.sequence.spliterators
-
- reverse() - Method in interface com.aol.cyclops.sequence.SequenceM
-
- reverse(Stream<U>) - Static method in class com.aol.cyclops.sequence.SeqUtils
-
Reverse a Stream
- ReversedIterator<U> - Class in com.aol.cyclops.sequence
-
- ReversedIterator() - Constructor for class com.aol.cyclops.sequence.ReversedIterator
-
- reversedIterator() - Method in class com.aol.cyclops.sequence.ReversedIterator
-
- reversedListOf(List<T>) - Static method in interface com.aol.cyclops.sequence.SequenceM
-
Construct a Reveresed Sequence from the provided elements
Can be reversed (again) efficiently
- reversedOf(T...) - Static method in interface com.aol.cyclops.sequence.SequenceM
-
Construct a Reveresed Sequence from the provided elements
Can be reversed (again) efficiently
- reversedStream(List<U>) - Static method in class com.aol.cyclops.sequence.SeqUtils
-
Create a reversed Stream from a List
- ReversingArraySpliterator<T> - Class in com.aol.cyclops.sequence.spliterators
-
- ReversingArraySpliterator() - Constructor for class com.aol.cyclops.sequence.spliterators.ReversingArraySpliterator
-
- ReversingListSpliterator<T> - Class in com.aol.cyclops.sequence.spliterators
-
- ReversingListSpliterator(List<T>, boolean) - Constructor for class com.aol.cyclops.sequence.spliterators.ReversingListSpliterator
-
- ReversingRangeSpliterator - Class in com.aol.cyclops.sequence.spliterators
-
- ReversingRangeSpliterator() - Constructor for class com.aol.cyclops.sequence.spliterators.ReversingRangeSpliterator
-
- rightOuterJoin(Stream<U>, BiPredicate<T, U>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
- scanLeft(Monoid<T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Scan left using supplied Monoid
- scanLeft(U, BiFunction<U, ? super T, U>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Scan left
- scanRight(Monoid<T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Scan right
- scanRight(U, BiFunction<? super T, U, U>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Scan right
- sequenceM() - Method in interface com.aol.cyclops.sequence.reactivestreams.CyclopsSubscriber
-
- SequenceM<T> - Interface in com.aol.cyclops.sequence
-
- sequenceM(Stream<T>, ReversableSpliterator) - Method in interface com.aol.cyclops.sequence.SequenceMFactory
-
- sequenceM() - Method in interface com.aol.cyclops.sequence.streamable.Streamable
-
- SequenceMFactory - Interface in com.aol.cyclops.sequence
-
- SequenceMFactory.MetaFactory - Class in com.aol.cyclops.sequence
-
- sequential() - Method in interface com.aol.cyclops.sequence.SequenceM
-
- SeqUtils - Class in com.aol.cyclops.sequence
-
- SeqUtils() - Constructor for class com.aol.cyclops.sequence.SeqUtils
-
- setReverse(boolean) - Method in interface com.aol.cyclops.sequence.spliterators.ReversableSpliterator
-
- shuffle() - Method in interface com.aol.cyclops.sequence.SequenceM
-
- shuffle(Random) - Method in interface com.aol.cyclops.sequence.SequenceM
-
- simpleFilter(AnyM<Predicate<? super T>>) - Method in interface com.aol.cyclops.monad.AnyM
-
Filter current monad by each element in supplied Monad
e.g.
- simpleFilter(Stream<Predicate<? super T>>) - Method in interface com.aol.cyclops.monad.AnyM
-
- simpleFilter(Streamable<Predicate<? super T>>) - Method in interface com.aol.cyclops.monad.AnyM
-
- simpleFilter(Optional<Predicate<? super T>>) - Method in interface com.aol.cyclops.monad.AnyM
-
- simpleFilter(CompletableFuture<Predicate<? super T>>) - Method in interface com.aol.cyclops.monad.AnyM
-
- single() - Method in interface com.aol.cyclops.sequence.future.FutureOperations
-
- single() - Method in interface com.aol.cyclops.sequence.SequenceM
-
assertThat(SequenceM.of(1).single(),equalTo(1));
- skip(long) - Method in interface com.aol.cyclops.sequence.SequenceM
-
assertThat(SequenceM.of(4,3,6,7).skip(2).toList(),equalTo(Arrays.asList(6,7)));
- skip(long, TimeUnit) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Skip all elements until specified time period has passed
- skipLast(int) - Method in interface com.aol.cyclops.sequence.SequenceM
-
assertThat(SequenceM.of(1,2,3,4,5)
.skipLast(2)
.collect(Collectors.toList()),equalTo(Arrays.asList(1,2,3)));
- skipUntil(Predicate<? super T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
assertThat(SequenceM.of(4,3,6,7).skipUntil(i->i==6).toList(),equalTo(Arrays.asList(6,7)));
- skipWhile(Predicate<? super T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
assertThat(SequenceM.of(4,3,6,7).sorted().skipWhile(i->i<6).toList(),equalTo(Arrays.asList(6,7)));
- slice(long, long) - Method in interface com.aol.cyclops.sequence.SequenceM
-
- sliding(int) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Create a sliding view over this Sequence
- sliding(int, int) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Create a sliding view over this Sequence
- sorted() - Method in interface com.aol.cyclops.sequence.SequenceM
-
assertThat(SequenceM.of(4,3,6,7)).sorted().toList(),equalTo(Arrays.asList(3,4,6,7)));
- sorted(Comparator<? super T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
assertThat(SequenceM.of(4,3,6,7).sorted((a,b) -> b-a).toList(),equalTo(Arrays.asList(7,6,4,3)));
- sorted(Function<? super T, ? extends U>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
- splitAt(int) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Split at supplied location
- splitBy(Predicate<T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
Split stream at point where predicate no longer holds
- splitSequenceAtHead() - Method in interface com.aol.cyclops.sequence.SequenceM
-
Split a Stream at it's head (similar to headAndTail)
- startsWith(Iterable<T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
assertTrue(SequenceM.of(1,2,3,4).startsWith(Arrays.asList(1,2,3)));
- startsWith(Iterator<T>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
assertTrue(SequenceM.of(1,2,3,4).startsWith(Arrays.asList(1,2,3).iterator()))
- stream() - Method in class com.aol.cyclops.sequence.ReversedIterator
-
- stream() - Method in interface com.aol.cyclops.sequence.SequenceM
-
Convert this SequenceM into a Stream
- stream() - Method in interface com.aol.cyclops.sequence.streamable.Streamable
-
- Streamable<T> - Interface in com.aol.cyclops.sequence.streamable
-
Represents something that can generate a Stream, repeatedly
- StreamableImpl<T> - Class in com.aol.cyclops.sequence.streamable
-
- StreamableImpl() - Constructor for class com.aol.cyclops.sequence.streamable.StreamableImpl
-
- subscribe(Stream<T>, Subscriber<? super T>) - Method in interface com.aol.cyclops.sequence.reactivestreams.ReactiveStreamsPublisher
-
- subscribe() - Method in interface com.aol.cyclops.sequence.reactivestreams.ReactiveStreamsSubscriber
-
- subscriber - Static variable in class com.aol.cyclops.sequence.reactivestreams.ReactiveStreamsLoader
-
- subscriber() - Static method in interface com.aol.cyclops.sequence.SequenceM
-
Create a subscriber that can listen to Reactive Streams (simple-react, RxJava
AkkaStreams, Kontraktor, QuadarStreams etc)
- sumDouble(ToDoubleFunction<T>) - Method in interface com.aol.cyclops.sequence.future.DoubleOperators
-
Perform an asynchronous sum operation
- sumInt(ToIntFunction<T>) - Method in interface com.aol.cyclops.sequence.future.IntOperators
-
Perform an asynchronous sum operation
- sumLong(ToLongFunction<T>) - Method in interface com.aol.cyclops.sequence.future.LongOperators
-
Perform an asynchronous sum operation
- summaryStatisticsDouble(ToDoubleFunction<T>) - Method in interface com.aol.cyclops.sequence.future.DoubleOperators
-
Perform an asynchronous summaryStatistics operation
- summaryStatisticsInt(ToIntFunction<T>) - Method in interface com.aol.cyclops.sequence.future.IntOperators
-
Perform an asynchronous summaryStatistics operation
- summaryStatisticsLong(ToLongFunction<T>) - Method in interface com.aol.cyclops.sequence.future.LongOperators
-
Perform an asynchronous summaryStatistics operation
- synchronizedFromIterable(Iterable<T>) - Static method in class com.aol.cyclops.sequence.streamable.AsStreamable
-
- synchronizedFromStream(Stream<T>) - Static method in class com.aol.cyclops.sequence.streamable.AsStreamable
-
- tail() - Method in class com.aol.cyclops.sequence.HeadAndTail
-
- tailStream() - Method in class com.aol.cyclops.sequence.HeadAndTail
-
- timestamp() - Method in interface com.aol.cyclops.sequence.SequenceM
-
SequenceM.of(1,2,3,4,5)
.timestamp()
.forEach(System.out::println)
- toArray(IntFunction<A[]>) - Method in interface com.aol.cyclops.sequence.future.FutureOperations
-
Asyncrhonously generate an Array
- toArray() - Method in interface com.aol.cyclops.sequence.future.FutureOperations
-
Asyncrhonously generate an Array
- toCollection(Supplier<C>) - Method in interface com.aol.cyclops.sequence.future.FutureOperations
-
Asynchronously perform a Stream collection
- toCollection(Supplier<C>) - Method in interface com.aol.cyclops.sequence.SequenceM
-
- toCompletableFuture() - Method in interface com.aol.cyclops.monad.AnyM
-
- toCompletableFuture() - Method in interface com.aol.cyclops.sequence.SequenceM
-
CompletableFuture<List<String>> cf = SequenceM.of("hello","world")
.toCompletableFuture();
assertThat(cf.join(),equalTo(Arrays.asList("hello","world")));
- toConcurrentLazyCollection() - Method in interface com.aol.cyclops.sequence.SequenceM
-
Lazily converts this SequenceM into a Collection.
- toConcurrentLazyCollection(Stream<A>) - Static method in class com.aol.cyclops.sequence.SeqUtils
-
Lazily constructs a Collection from specified Stream.
- toConcurrentLazyCollection(Iterator<A>) - Static method in class com.aol.cyclops.sequence.SeqUtils
-
- toConcurrentLazyStreamable() - Method in interface com.aol.cyclops.sequence.SequenceM
-
Streamable<Integer> repeat = SequenceM.of(1,2,3,4,5,6)
.map(i->i+2)
.toConcurrentLazyStreamable();
assertThat(repeat.sequenceM().toList(),equalTo(Arrays.asList(2,4,6,8,10,12)));
assertThat(repeat.sequenceM().toList(),equalTo(Arrays.asList(2,4,6,8,10,12)));
- toCountDouble() - Static method in class com.aol.cyclops.sequence.Reducers
-
- toCountInt() - Static method in class com.aol.cyclops.sequence.Reducers
-
- toLazyCollection() - Method in interface com.aol.cyclops.sequence.SequenceM
-
Lazily converts this SequenceM into a Collection.
- toLazyCollection(Stream<A>) - Static method in class com.aol.cyclops.sequence.SeqUtils
-
Projects an immutable collection of this stream.
- toLazyCollection(Iterator<A>) - Static method in class com.aol.cyclops.sequence.SeqUtils
-
- toList() - Method in interface com.aol.cyclops.monad.AnyM
-
Convert this monad into a List
- toList() - Method in interface com.aol.cyclops.sequence.future.FutureOperations
-
Asynchronously convert this Stream into a List
- toList() - Method in interface com.aol.cyclops.sequence.SequenceM
-
- toOptional() - Method in interface com.aol.cyclops.monad.AnyM
-
- toOptional() - Method in interface com.aol.cyclops.sequence.SequenceM
-
Type safe unwrap
- toPMap() - Static method in class com.aol.cyclops.sequence.Reducers
-
- toPStack() - Static method in class com.aol.cyclops.sequence.Reducers
-
- toSequence(Function<T, Stream<NT>>) - Method in interface com.aol.cyclops.monad.AnyM
-
Sequence the contents of a Monad.
- toSequence() - Method in interface com.aol.cyclops.monad.AnyM
-
Optional<List<Integer>> into Stream<Integer>
- toSet() - Method in interface com.aol.cyclops.monad.AnyM
-
Convert this monad into a Set
- toSet() - Method in interface com.aol.cyclops.sequence.future.FutureOperations
-
Asynchronously convert this Stream into a List
- toSet() - Method in interface com.aol.cyclops.sequence.SequenceM
-
- toStream() - Method in interface com.aol.cyclops.sequence.SequenceM
-
Convert this SequenceM into a Stream
- toStreamable() - Method in interface com.aol.cyclops.sequence.SequenceM
-
Streamable<Integer> repeat = SequenceM.of(1,2,3,4,5,6)
.map(i->i*2)
.toStreamable();
repeat.sequenceM().toList(); //Arrays.asList(2,4,6,8,10,12));
repeat.sequenceM().toList() //Arrays.asList(2,4,6,8,10,12));
- toString() - Method in interface com.aol.cyclops.monad.AnyM
-
- toString(String) - Static method in class com.aol.cyclops.sequence.Reducers
-
- toTotalDouble() - Static method in class com.aol.cyclops.sequence.Reducers
-
- toTotalInt() - Static method in class com.aol.cyclops.sequence.Reducers
-
- triplicate() - Method in interface com.aol.cyclops.sequence.SequenceM
-
Triplicates a Stream
Buffers intermediate values, leaders may change positions so a limit
can be safely applied to the leading stream.
- tryAdvance(Consumer<? super T>) - Method in class com.aol.cyclops.sequence.spliterators.ReversingArraySpliterator
-
- tryAdvance(Consumer<? super T>) - Method in class com.aol.cyclops.sequence.spliterators.ReversingListSpliterator
-
- tryAdvance(IntConsumer) - Method in class com.aol.cyclops.sequence.spliterators.ReversingRangeSpliterator
-
- trySplit() - Method in class com.aol.cyclops.sequence.spliterators.ReversingArraySpliterator
-
- trySplit() - Method in class com.aol.cyclops.sequence.spliterators.ReversingListSpliterator
-
- trySplit() - Method in class com.aol.cyclops.sequence.spliterators.ReversingRangeSpliterator
-