Skip navigation links
A C D E F G H I L M N O P R S T U W Z 

A

accept(I) - Method in class com.codepoetics.protonpack.stateful.StateMachineRunner
 
accept(I, I...) - Method in class com.codepoetics.protonpack.stateful.StateMachineRunner
 
accept(Collection<I>) - Method in class com.codepoetics.protonpack.stateful.StateMachineRunner
 
accept(Stream<I>) - Method in class com.codepoetics.protonpack.stateful.StateMachineRunner
 
acceptAndFinish(I) - Method in class com.codepoetics.protonpack.stateful.StateMachineRunner
 
acceptAndFinish(I, I...) - Method in class com.codepoetics.protonpack.stateful.StateMachineRunner
 
acceptAndFinish(Collection<I>) - Method in class com.codepoetics.protonpack.stateful.StateMachineRunner
 
acceptAndFinish(Stream<I>) - Method in class com.codepoetics.protonpack.stateful.StateMachineRunner
 
aggregate(Stream<T>, BiPredicate<T, T>) - Static method in class com.codepoetics.protonpack.StreamUtils
Aggregates items from source stream into list of items while supplied predicate is true when evaluated on previous and current item.
aggregate(Stream<T>, int) - Static method in class com.codepoetics.protonpack.StreamUtils
Aggregates items from source stream into list of items with fixed size
aggregateOnListCondition(Stream<T>, BiPredicate<List<T>, T>) - Static method in class com.codepoetics.protonpack.StreamUtils
Aggregates items from source stream.
andThen(Function<? super R, ? extends V>) - Method in interface com.codepoetics.protonpack.functions.TriFunction
 
append(Seq<T>) - Method in interface com.codepoetics.protonpack.Seq
Append a second sequence to this sequence.
apply(A, B, C) - Method in interface com.codepoetics.protonpack.functions.TriFunction
 
apply(S, I) - Method in class com.codepoetics.protonpack.stateful.ComposedStateMachine
 
apply(Supplier<Stream<T>>, T) - Method in class com.codepoetics.protonpack.stateful.LastMatchingFinderStateMachine
 
apply(S, I) - Method in interface com.codepoetics.protonpack.stateful.StateMachine
Apply the given input to the given state, returning a transition to a new state with 0 or more outputs.
apply(Set<T>, T) - Method in class com.codepoetics.protonpack.stateful.SubsetCheckingStateMachine
 
apply(S, T) - Method in class com.codepoetics.protonpack.stateful.TaggingStateMachine
 
apply(Boolean, T) - Method in class com.codepoetics.protonpack.stateful.TerminatingActionStateMachine
 
apply(Window<T>, T) - Method in class com.codepoetics.protonpack.stateful.WindowingStateMachine
 

C

checkingSubset(Set<T>) - Static method in class com.codepoetics.protonpack.stateful.StateMachines
 
collect() - Method in interface com.codepoetics.protonpack.maps.MapStream
Return a Map from the stream.
collect(BinaryOperator<V>) - Method in interface com.codepoetics.protonpack.maps.MapStream
Return a Map from the stream.
collect(Collector<T, ?, O>) - Method in interface com.codepoetics.protonpack.Streamable
Stream this streamable, and collect the stream with the supplied collector.
CollectorUtils - Class in com.codepoetics.protonpack.collectors
Utility class providing some collectors.
com.codepoetics.protonpack - package com.codepoetics.protonpack
 
com.codepoetics.protonpack.collectors - package com.codepoetics.protonpack.collectors
 
com.codepoetics.protonpack.comparators - package com.codepoetics.protonpack.comparators
 
com.codepoetics.protonpack.functions - package com.codepoetics.protonpack.functions
 
com.codepoetics.protonpack.maps - package com.codepoetics.protonpack.maps
 
com.codepoetics.protonpack.selectors - package com.codepoetics.protonpack.selectors
 
com.codepoetics.protonpack.stateful - package com.codepoetics.protonpack.stateful
 
Comparators - Class in com.codepoetics.protonpack.comparators
 
CompletableFutures - Class in com.codepoetics.protonpack.collectors
 
ComposedStateMachine<S,I,O> - Class in com.codepoetics.protonpack.stateful
 
concat(Streamable<T>) - Method in interface com.codepoetics.protonpack.Streamable
Concatenate this streamable with another streamable.
cons(T) - Method in interface com.codepoetics.protonpack.Seq
Add an item to the start of the sequence.
create(Supplier<S>, BiFunction<S, I, Transition<S, O>>) - Static method in interface com.codepoetics.protonpack.stateful.StateMachine
Use the given transition function to create a state machine that never terminates, and releases no final outputs at the end of processing.
create(Supplier<S>, BiFunction<S, I, Transition<S, O>>, Predicate<S>) - Static method in interface com.codepoetics.protonpack.stateful.StateMachine
Use the given transition function to create a state machine that terminates if the terminating condition is met, but releases no final outputs at the end of processing.
create(Supplier<S>, BiFunction<S, I, Transition<S, O>>, Predicate<S>, Function<S, Stream<O>>) - Static method in interface com.codepoetics.protonpack.stateful.StateMachine
Use the given transition function to create a state machine that terminates if the terminating condition is met, and may release final outputs at the end of processing.
create(S, StateMachine<S, I, O>) - Static method in class com.codepoetics.protonpack.stateful.StateMachineRunner
 
cycle(T...) - Static method in class com.codepoetics.protonpack.StreamUtils
Cycles through a set of items indefinitely.

D

distinct() - Method in interface com.codepoetics.protonpack.maps.MapStream
 

E

empty() - Static method in interface com.codepoetics.protonpack.Seq
Creates an empty sequence.
empty() - Static method in interface com.codepoetics.protonpack.Streamable
Gets an empty streamable.
equals(Object) - Method in class com.codepoetics.protonpack.Indexed
 
equals(Object) - Method in class com.codepoetics.protonpack.stateful.TaggedValue
 

F

filter(Predicate<? super Map.Entry<K, V>>) - Method in interface com.codepoetics.protonpack.maps.MapStream
 
filter(Predicate<? super T>) - Method in interface com.codepoetics.protonpack.Streamable
Transform this streamable's streams with the supplied filter predicate.
findLastMatching(Stream<T>, Predicate<T>) - Static method in class com.codepoetics.protonpack.stateful.Statefully
 
finish(S) - Method in class com.codepoetics.protonpack.stateful.ComposedStateMachine
 
finish(Supplier<Stream<T>>) - Method in class com.codepoetics.protonpack.stateful.LastMatchingFinderStateMachine
 
finish(S) - Method in interface com.codepoetics.protonpack.stateful.StateMachine
Based on the final state (if non-terminal), obtain any "left-over" outputs when the end of the stream is reached.
finish() - Method in class com.codepoetics.protonpack.stateful.StateMachineRunner
 
flatMap(Function<? super T, Stream<? extends T2>>) - Method in interface com.codepoetics.protonpack.Streamable
Transform this streamable's streams with the supplied flatmap.
forEach(Consumer<T>) - Method in interface com.codepoetics.protonpack.Streamable
Stream this streamable, and call forEach on the resulting stream with the supplied action.
forEachOrdered(Consumer<T>) - Method in interface com.codepoetics.protonpack.Streamable
Stream this streamable, and call forEach on the resulting stream in order with the supplied action.

G

get() - Method in interface com.codepoetics.protonpack.Seq
Gets a stream of the items in the sequence.
getIndex() - Method in class com.codepoetics.protonpack.Indexed
 
getInitialState() - Method in class com.codepoetics.protonpack.stateful.ComposedStateMachine
 
getInitialState() - Method in class com.codepoetics.protonpack.stateful.LastMatchingFinderStateMachine
 
getInitialState() - Method in interface com.codepoetics.protonpack.stateful.StateMachine
 
getInitialState() - Method in class com.codepoetics.protonpack.stateful.SubsetCheckingStateMachine
 
getInitialState() - Method in class com.codepoetics.protonpack.stateful.TaggingStateMachine
 
getInitialState() - Method in class com.codepoetics.protonpack.stateful.TerminatingActionStateMachine
 
getInitialState() - Method in class com.codepoetics.protonpack.stateful.WindowingStateMachine
 
getMessage() - Method in exception com.codepoetics.protonpack.collectors.NonUniqueValueException
 
getNewState() - Method in class com.codepoetics.protonpack.stateful.Transition
 
getOutputs() - Method in class com.codepoetics.protonpack.stateful.Transition
 
getState() - Method in class com.codepoetics.protonpack.stateful.StateMachineRunner
 
getTag() - Method in class com.codepoetics.protonpack.stateful.TaggedValue
 
getValue() - Method in class com.codepoetics.protonpack.Indexed
 
getValue() - Method in class com.codepoetics.protonpack.stateful.TaggedValue
 
groupRuns(Stream<T>) - Static method in class com.codepoetics.protonpack.StreamUtils
Constructs a stream that represents grouped run using the default comparator.
groupRuns(Stream<T>, Comparator<T>) - Static method in class com.codepoetics.protonpack.StreamUtils
Constructs a stream that represents grouped run using the custom comparator.

H

hashCode() - Method in class com.codepoetics.protonpack.Indexed
 
hashCode() - Method in class com.codepoetics.protonpack.stateful.TaggedValue
 
head() - Method in interface com.codepoetics.protonpack.Seq
Get the first item in the sequence.

I

includesItems(Stream<T>, T...) - Static method in class com.codepoetics.protonpack.stateful.Statefully
 
includesItems(Stream<T>, Set<T>) - Static method in class com.codepoetics.protonpack.stateful.Statefully
 
index(long, T) - Static method in class com.codepoetics.protonpack.Indexed
Combine an index and a value into an indexed value.
index(Stream<T>) - Static method in class com.codepoetics.protonpack.stateful.Statefully
 
Indexed<T> - Class in com.codepoetics.protonpack
A value combined with an index, indicating its position in an ordered sequence.
indices() - Static method in class com.codepoetics.protonpack.StreamUtils
Constructs an infinite (although in practice bounded by Long.MAX_VALUE) stream of longs 0, 1, 2, 3...
interleave(Function<T[], Integer>, Stream<T>...) - Static method in class com.codepoetics.protonpack.StreamUtils
Construct a stream which interleaves the supplied streams, picking items using the supplied selector function.
interleave(Function<T[], Integer>, List<Stream<T>>) - Static method in class com.codepoetics.protonpack.StreamUtils
Construct a stream which interleaves the supplied streams, picking items using the supplied selector function.
inverseMapping() - Method in interface com.codepoetics.protonpack.maps.MapStream
Return a MapStream from which the keys and values are reversed.
isEmpty() - Method in interface com.codepoetics.protonpack.Seq
Test if the sequence is empty.
isTerminal(S) - Method in class com.codepoetics.protonpack.stateful.ComposedStateMachine
 
isTerminal(Supplier<Stream<T>>) - Method in class com.codepoetics.protonpack.stateful.LastMatchingFinderStateMachine
 
isTerminal(S) - Method in interface com.codepoetics.protonpack.stateful.StateMachine
Test whether a given state is terminal and stream traversal should stop.
isTerminal(Set<T>) - Method in class com.codepoetics.protonpack.stateful.SubsetCheckingStateMachine
 
isTerminal(S) - Method in class com.codepoetics.protonpack.stateful.TaggingStateMachine
 
isTerminal(Boolean) - Method in class com.codepoetics.protonpack.stateful.TerminatingActionStateMachine
 

L

lastMatchingFinder(Predicate<T>) - Static method in class com.codepoetics.protonpack.stateful.StateMachines
 
LastMatchingFinderStateMachine<T> - Class in com.codepoetics.protonpack.stateful
 
limit(long) - Method in interface com.codepoetics.protonpack.maps.MapStream
 
limit(long) - Method in interface com.codepoetics.protonpack.Streamable
Transform this streamable's streams by limiting the number of elements they can contain.

M

map(Function<? super T, ? extends T2>) - Method in interface com.codepoetics.protonpack.Streamable
Transform this streamable's streams with the supplied map.
mapEntries(Function<? super K, ? extends K1>, Function<? super V, ? extends V1>) - Method in interface com.codepoetics.protonpack.maps.MapStream
Applies the mapping for each key and value in the map.
mapEntries(BiFunction<? super K, ? super V, ? extends R>) - Method in interface com.codepoetics.protonpack.maps.MapStream
Applies the mapping for each (key, value) pair in the map.
mapEntriesToKeys(BiFunction<? super K, ? super V, ? extends R>) - Method in interface com.codepoetics.protonpack.maps.MapStream
Applies the mapping for each key and value in the map, to produce a new key for each entry.
mapEntriesToValues(BiFunction<? super K, ? super V, ? extends R>) - Method in interface com.codepoetics.protonpack.maps.MapStream
Applies the mapping for each key and value in the map, to produce a new value for each entry.
mapKeys(Function<? super K, ? extends K1>) - Method in interface com.codepoetics.protonpack.maps.MapStream
Applies the mapping for each key in the map.
MapStream<K,V> - Interface in com.codepoetics.protonpack.maps
A stream of Map.Entry<K, V>.
mapValues(Function<? super V, ? extends V1>) - Method in interface com.codepoetics.protonpack.maps.MapStream
Applies the mapping for each value in the map.
maxBy(Function<T, Y>) - Static method in class com.codepoetics.protonpack.collectors.CollectorUtils
Find the item for which the supplied projection returns the maximum value.
maxBy(Function<T, Y>, Comparator<Y>) - Static method in class com.codepoetics.protonpack.collectors.CollectorUtils
Find the item for which the supplied projection returns the maximum value (variant for non-naturally-comparable projected values).
merge(Supplier<O>, BiFunction<O, T, O>, Stream<T>...) - Static method in class com.codepoetics.protonpack.StreamUtils
Construct a stream which merges together values from the supplied streams, somewhat in the manner of the stream constructed by StreamUtils.zip(java.util.stream.Stream, java.util.stream.Stream, java.util.function.BiFunction), but for an arbitrary number of streams and using a merger to merge the values from multiple streams into an accumulator.
mergeKeys() - Method in interface com.codepoetics.protonpack.maps.MapStream
Merge keys of the Stream into a new Stream
mergeKeys(BinaryOperator<V>) - Method in interface com.codepoetics.protonpack.maps.MapStream
Merge keys of the Stream into a new Stream with the merge function provided
mergeToList(Stream<T>...) - Static method in class com.codepoetics.protonpack.StreamUtils
Construct a stream which merges together values from the supplied streams into lists of values, somewhat in the manner of the stream constructed by StreamUtils.zip(java.util.stream.Stream, java.util.stream.Stream, java.util.function.BiFunction), but for an arbitrary number of streams.
minBy(Function<T, Y>) - Static method in class com.codepoetics.protonpack.collectors.CollectorUtils
Find the item for which the supplied projection returns the minimum value.
minBy(Function<T, Y>, Comparator<Y>) - Static method in class com.codepoetics.protonpack.collectors.CollectorUtils
Find the item for which the supplied projection returns the minimum value (variant for non-naturally-comparable projected values).

N

noCombiner() - Static method in class com.codepoetics.protonpack.collectors.CollectorUtils
A combiner for all the cases when you don't intend to reduce/collect on a parallel stream.
NonUniqueValueException - Exception in com.codepoetics.protonpack.collectors
 
NonUniqueValueException(Object, Object) - Constructor for exception com.codepoetics.protonpack.collectors.NonUniqueValueException
 

O

of(Map<K, V>) - Static method in interface com.codepoetics.protonpack.maps.MapStream
Construct a MapStream<K, V> from the map
of(K, V) - Static method in interface com.codepoetics.protonpack.maps.MapStream
Construct a MapStream<K, V> from a single key-value pair
of(K, V, K, V) - Static method in interface com.codepoetics.protonpack.maps.MapStream
Construct a MapStream<K, V> from a multiple key-value pairs
of(K, V, K, V, K, V) - Static method in interface com.codepoetics.protonpack.maps.MapStream
Construct a MapStream<K, V> from a multiple key-value pairs
of(K, V, K, V, K, V, K, V) - Static method in interface com.codepoetics.protonpack.maps.MapStream
Construct a MapStream<K, V> from a multiple key-value pairs
of(K, V, K, V, K, V, K, V, K, V) - Static method in interface com.codepoetics.protonpack.maps.MapStream
Construct a MapStream<K, V> from a multiple key-value pairs
of(T...) - Static method in interface com.codepoetics.protonpack.Seq
Creates a sequence containing zero or more items.
of(List<T>) - Static method in interface com.codepoetics.protonpack.Seq
Creates a sequence from an ordered list
of(Collection<T>) - Static method in interface com.codepoetics.protonpack.Seq
Creates a sequence from a collection
of(Stream<T>) - Static method in interface com.codepoetics.protonpack.Seq
Creates a sequence from a stream by consing each item onto an initially empty stream.
of(S, T) - Static method in class com.codepoetics.protonpack.stateful.TaggedValue
 
of(Supplier<Stream<T>>) - Static method in interface com.codepoetics.protonpack.Streamable
For converting method references to no-arg methods that return streams into streamable.
of(T...) - Static method in interface com.codepoetics.protonpack.Streamable
Create a streamable that produces streams over an array of items.
of(Collection<T>) - Static method in interface com.codepoetics.protonpack.Streamable
Create a streamable that produces streams over a collection of items.
of(Iterable<T>) - Static method in interface com.codepoetics.protonpack.Streamable
Create a streamable that produces streams over an iterable of items.
of(Optional<T>) - Static method in interface com.codepoetics.protonpack.Streamable
Create a streamable that produces streams of 0 or 1 elements over an optional value.
ofAll(Streamable<T>...) - Static method in interface com.codepoetics.protonpack.Streamable
Concatenate a series of streamables together.
ofMaps(Map<K, V>...) - Static method in interface com.codepoetics.protonpack.maps.MapStream
Construct a MapStream<K, V> from the map
ofNullable(Iterable<T>) - Static method in class com.codepoetics.protonpack.StreamUtils
Converts a nullable Iterable into a Stream.
ofNullable(int[]) - Static method in class com.codepoetics.protonpack.StreamUtils
Converts nullable int array into an empty stream, and non-null array into a stream.
ofNullable(long[]) - Static method in class com.codepoetics.protonpack.StreamUtils
Converts nullable long array into an empty stream, and non-null array into a stream.
ofNullable(double[]) - Static method in class com.codepoetics.protonpack.StreamUtils
Converts nullable float array into an empty stream, and non-null array into a stream.
ofNullable(T[]) - Static method in class com.codepoetics.protonpack.StreamUtils
Converts nullable array into an empty stream, and non-null array into a stream.
ofSingleNullable(T) - Static method in class com.codepoetics.protonpack.StreamUtils
Converts nulls into an empty stream, and non-null values into a stream with one element.
onClose(Runnable) - Method in interface com.codepoetics.protonpack.maps.MapStream
 

P

parallel() - Method in interface com.codepoetics.protonpack.maps.MapStream
 
peek(Consumer<? super Map.Entry<K, V>>) - Method in interface com.codepoetics.protonpack.maps.MapStream
 

R

reduce(U, BiFunction<U, T, U>, BinaryOperator<U>) - Method in interface com.codepoetics.protonpack.Streamable
Stream and reduce the streamable, using the supplied identity, accumulator and combiner.
reduce(BinaryOperator<T>) - Method in interface com.codepoetics.protonpack.Streamable
Stream and reduce the streamable, using the supplied accumulator.
reduce(T, BinaryOperator<T>) - Method in interface com.codepoetics.protonpack.Streamable
Stream and reduce the streamable, using the supplied identity and accumulator.
reducing(BinaryOperator<A>) - Static method in class com.codepoetics.protonpack.collectors.CompletableFutures
 
reject(Predicate<? super T>) - Method in interface com.codepoetics.protonpack.Streamable
Transform this streamable's streams with the supplied filter predicate, rejecting items which match the predicate.
reject(Stream<T>, Predicate<? super T>) - Static method in class com.codepoetics.protonpack.StreamUtils
Filter with the condition negated.
reverse() - Method in interface com.codepoetics.protonpack.Seq
Returns the stream in reverse order.
roundRobin() - Static method in class com.codepoetics.protonpack.selectors.Selectors
 
runner() - Method in interface com.codepoetics.protonpack.stateful.StateMachine
 
runnerWith(S) - Method in interface com.codepoetics.protonpack.stateful.StateMachine
 

S

Selector<T> - Interface in com.codepoetics.protonpack.selectors
 
Selectors - Class in com.codepoetics.protonpack.selectors
 
Seq<T> - Interface in com.codepoetics.protonpack
A sequence of values represented as nested cons pairs.
sequential() - Method in interface com.codepoetics.protonpack.maps.MapStream
 
singleton(T) - Static method in interface com.codepoetics.protonpack.Seq
Creates a sequence containing only one item.
skip(long) - Method in interface com.codepoetics.protonpack.maps.MapStream
 
skip(long) - Method in interface com.codepoetics.protonpack.Streamable
Transform this streamable's streams by skipping elements
skipUntil(Stream<T>, Predicate<T>) - Static method in class com.codepoetics.protonpack.StreamUtils
Construct a stream which skips values from the source stream for as long as they do not meet the supplied condition, then streams every remaining value as soon as the first value is found which does meet the condition.
skipUntilInclusive(Stream<T>, Predicate<T>) - Static method in class com.codepoetics.protonpack.StreamUtils
Construct a stream which skips values from the source stream up until but including the first value is found that satisfies the given condition.
skipWhile(Stream<T>, Predicate<T>) - Static method in class com.codepoetics.protonpack.StreamUtils
Construct a stream which skips values from the source stream for as long as they meet the supplied condition, then streams every remaining value as soon as the first value is found which does not meet the condition.
skipWhileInclusive(Stream<T>, Predicate<T>) - Static method in class com.codepoetics.protonpack.StreamUtils
Construct a stream which skips values from the source stream up until but including the first value is found that does not meet the given condition.
sorted() - Method in interface com.codepoetics.protonpack.maps.MapStream
 
sorted(Comparator<? super Map.Entry<K, V>>) - Method in interface com.codepoetics.protonpack.maps.MapStream
 
sorted(Comparator<? super T>) - Method in interface com.codepoetics.protonpack.Streamable
Transform this streamable's streams by sorting them.
Statefully - Class in com.codepoetics.protonpack.stateful
 
Statefully() - Constructor for class com.codepoetics.protonpack.stateful.Statefully
 
StateMachine<S,I,O> - Interface in com.codepoetics.protonpack.stateful
A state machine that receives items from an input stream and performs a state transition for each item, emitting zero or more outputs.
StateMachineRunner<S,I,O> - Class in com.codepoetics.protonpack.stateful
 
StateMachines - Class in com.codepoetics.protonpack.stateful
 
stream() - Method in interface com.codepoetics.protonpack.Streamable
Synonym for "get"
stream(Optional<T>) - Static method in class com.codepoetics.protonpack.StreamUtils
Converts an Optional value to a stream of 0..1 values
stream(Iterable<T>) - Static method in class com.codepoetics.protonpack.StreamUtils
Converts an Iterable into a Stream.
Streamable<T> - Interface in com.codepoetics.protonpack
A source of Streams that can be repeatedly streamed.
streamNullable(T) - Static method in class com.codepoetics.protonpack.StreamUtils
StreamUtils - Class in com.codepoetics.protonpack
Utility class providing static methods for performing various operations on Streams.
SubsetCheckingStateMachine<T> - Class in com.codepoetics.protonpack.stateful
 

T

TaggedValue<S,T> - Class in com.codepoetics.protonpack.stateful
 
tagging(Stream<T>, S, BiFunction<S, T, S>) - Static method in class com.codepoetics.protonpack.stateful.Statefully
 
tagging(Stream<T>, S, BiFunction<S, T, S>, Predicate<S>) - Static method in class com.codepoetics.protonpack.stateful.Statefully
 
tagging(S, BiFunction<S, T, S>) - Static method in class com.codepoetics.protonpack.stateful.StateMachines
 
tagging(S, BiFunction<S, T, S>, Predicate<S>) - Static method in class com.codepoetics.protonpack.stateful.StateMachines
 
tagging(Supplier<S>, BiFunction<S, T, S>) - Static method in class com.codepoetics.protonpack.stateful.StateMachines
 
tagging(Supplier<S>, BiFunction<S, T, S>, Predicate<S>) - Static method in class com.codepoetics.protonpack.stateful.StateMachines
 
TaggingStateMachine<S,T> - Class in com.codepoetics.protonpack.stateful
 
tail() - Method in interface com.codepoetics.protonpack.Seq
Get the remaining items in the sequence.
takeMax() - Static method in class com.codepoetics.protonpack.selectors.Selectors
 
takeMax(Comparator<? super T>) - Static method in class com.codepoetics.protonpack.selectors.Selectors
 
takeMin() - Static method in class com.codepoetics.protonpack.selectors.Selectors
 
takeMin(Comparator<? super T>) - Static method in class com.codepoetics.protonpack.selectors.Selectors
 
takeUntil(Stream<T>, Predicate<T>) - Static method in class com.codepoetics.protonpack.StreamUtils
Construct a stream which takes values from the source stream until one of them meets the supplied condition, and then stops.
takeUntilInclusive(Stream<T>, Predicate<T>) - Static method in class com.codepoetics.protonpack.StreamUtils
Construct a stream which takes values from the source stream until but including the first value that is encountered which meets the supplied condition.
takeWhile(Stream<T>, Predicate<T>) - Static method in class com.codepoetics.protonpack.StreamUtils
Construct a stream which takes values from the source stream for as long as they meet the supplied condition, and stops as soon as a value is encountered which does not meet the condition.
takeWhileInclusive(Stream<T>, Predicate<T>) - Static method in class com.codepoetics.protonpack.StreamUtils
Construct a stream which takes values from the source stream until but including the first value that is encountered which does not meet the condition.
terminates(Stream<I>, StateMachine<S, I, O>) - Static method in class com.codepoetics.protonpack.stateful.Statefully
 
TerminatingActionStateMachine<T> - Class in com.codepoetics.protonpack.stateful
 
terminatingForEach(Stream<T>, Function<T, Boolean>) - Static method in class com.codepoetics.protonpack.stateful.Statefully
 
terminatingForEach(Function<T, Boolean>) - Static method in class com.codepoetics.protonpack.stateful.StateMachines
 
to(S, O...) - Static method in class com.codepoetics.protonpack.stateful.Transition
Create a transition to a new state with zero or more outputs.
to(S, Stream<O>) - Static method in class com.codepoetics.protonpack.stateful.Transition
Create a transition to a new state with the given outputs.
toArray(IntFunction<T[]>) - Method in interface com.codepoetics.protonpack.Streamable
Stream this streamable, and collect the stream to an array.
toFuture(Supplier<A>, BiFunction<T, A, A>, BinaryOperator<A>) - Static method in class com.codepoetics.protonpack.collectors.CompletableFutures
 
toFuture(Supplier<A>, BiFunction<T, A, A>, BinaryOperator<A>, Function<? super A, ? extends R>) - Static method in class com.codepoetics.protonpack.collectors.CompletableFutures
 
toFutureList() - Static method in class com.codepoetics.protonpack.collectors.CompletableFutures
Collector which converts a stream of CompletableFuture<T> into a CompletableFuture<List<T>>
toList() - Method in interface com.codepoetics.protonpack.Streamable
Stream this streamable, and collect the stream to a list.
toListComparator(Comparator<? super T>) - Static method in class com.codepoetics.protonpack.comparators.Comparators
 
toMap(Function<? super T, ? extends K>) - Method in interface com.codepoetics.protonpack.Streamable
Stream this streamable, and collect the stream to a map, extracting keys with the supplied index function.
toMap(Function<? super T, ? extends K>, Function<? super T, ? extends V>) - Method in interface com.codepoetics.protonpack.Streamable
Stream this streamable, and collect the stream to a map, extracting keys and values with the supplied functions.
toSeq() - Method in interface com.codepoetics.protonpack.Seq
 
toSeq() - Method in interface com.codepoetics.protonpack.Streamable
Stream this streamable, and collect the stream into a Seq.
toSet() - Method in interface com.codepoetics.protonpack.Streamable
Stream this streamable, and collect the stream to a set.
toString() - Method in class com.codepoetics.protonpack.Indexed
 
toString() - Method in class com.codepoetics.protonpack.stateful.TaggedValue
 
transform(Stream<I>, StateMachine<S, I, O>) - Static method in class com.codepoetics.protonpack.stateful.Statefully
 
transform(Function<Stream<T>, Stream<T2>>) - Method in interface com.codepoetics.protonpack.Streamable
Create a streamable that transforms the streams produced by this streamable with a stream transformer.
Transition<S,O> - Class in com.codepoetics.protonpack.stateful
Represents a transition to a new state, together with zero or more outputs.
traverse(Stream<I>, StateMachine<S, I, O>) - Static method in class com.codepoetics.protonpack.stateful.Statefully
 
TriFunction<A,B,C,R> - Interface in com.codepoetics.protonpack.functions
 

U

unfold(T, Function<T, Optional<T>>) - Static method in class com.codepoetics.protonpack.StreamUtils
Construct a stream which takes the seed value and applies the generator to create the next value, feeding each new value back into the generator to create subsequent values.
unique() - Static method in class com.codepoetics.protonpack.collectors.CollectorUtils
A collector that returns the single member of a stream (if present), or throws a NonUniqueValueException if more than one item is found.
uniqueNullable() - Static method in class com.codepoetics.protonpack.collectors.CollectorUtils
A collector that returns the single member of a stream (or null if not present), or throws a NonUniqueValueException if more than one item is found.
unordered() - Method in interface com.codepoetics.protonpack.maps.MapStream
 

W

window(Stream<T>, int, Function<Stream<T>, R>) - Static method in class com.codepoetics.protonpack.stateful.Statefully
 
windowed(Stream<T>, int) - Static method in class com.codepoetics.protonpack.StreamUtils
Constructs a stream that is a windowed view of the source stream of the size window size with a default overlap of one item
windowed(Stream<T>, int, int) - Static method in class com.codepoetics.protonpack.StreamUtils
Constructs a windowed stream where each element is a list of the window size and the skip is the offset from the start of each window.
windowed(Stream<T>, int, int, boolean) - Static method in class com.codepoetics.protonpack.StreamUtils
Constructs a windowed stream where each element is a list of the window size and the skip is the offset from the start of each window.
windowingStateMachine(int, Function<Stream<T>, R>) - Static method in class com.codepoetics.protonpack.stateful.StateMachines
 
WindowingStateMachine<T,R> - Class in com.codepoetics.protonpack.stateful
 

Z

zip(Stream<L>, Stream<R>, BiFunction<L, R, O>) - Static method in class com.codepoetics.protonpack.StreamUtils
Zip together the "left" and "right" streams until either runs out of values.
zip(Stream<L>, Stream<M>, Stream<R>, TriFunction<L, M, R, O>) - Static method in class com.codepoetics.protonpack.StreamUtils
Zip together the "left", "middle" and "right" streams until any stream runs out of values.
zip(List<Stream<T>>, Function<List<T>, O>) - Static method in class com.codepoetics.protonpack.StreamUtils
Zip together a list of streams until one of them runs out of values.
zipWithIndex(Stream<T>) - Static method in class com.codepoetics.protonpack.StreamUtils
Zip the source stream together with the stream of indices() to provide a stream of indexed values.
A C D E F G H I L M N O P R S T U W Z 
Skip navigation links

Copyright © 2020. All rights reserved.