- 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
-
- 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
-
- 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).
- 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
-
- 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
-
- 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
-