Index

C D E F I P S T V W 
All Classes and Interfaces|All Packages

C

chunk(int, T...) - Static method in class dev.zachmaddox.chunking.Chunking
Varargs convenience method: chunks an array of elements.
chunk(Iterable<T>, int) - Static method in class dev.zachmaddox.chunking.Chunking
Chunks an Iterable into a list of lists, using its iteration order.
chunk(Collection<T>, int) - Static method in class dev.zachmaddox.chunking.Chunking
Chunks a Collection into a list of lists, using its iteration order.
chunk(Spliterator<T>, int) - Static method in class dev.zachmaddox.chunking.Chunking
Chunks a Spliterator into a list of lists, using its traversal order.
chunk(DoubleStream, int) - Static method in class dev.zachmaddox.chunking.Chunking
Chunks a DoubleStream into List<List<Double>> and closes it.
chunk(IntStream, int) - Static method in class dev.zachmaddox.chunking.Chunking
Chunks an IntStream into List<List<Integer>> and closes it.
chunk(LongStream, int) - Static method in class dev.zachmaddox.chunking.Chunking
Chunks a LongStream into List<List<Long>> and closes it.
chunk(Stream<T>, int) - Static method in class dev.zachmaddox.chunking.Chunking
Chunks a Stream into a list of lists and closes the stream.
chunkedBy(BiPredicate<? super T, ? super T>) - Static method in class dev.zachmaddox.chunking.Chunking
Returns a Collector that groups elements into chunks based on a boundary predicate.
Chunking - Class in dev.zachmaddox.chunking
Utility class for chunking streams and iterables into lists.
Chunking.RemainderPolicy - Enum in dev.zachmaddox.chunking
Defines how to handle the trailing remainder when the input size is not evenly divisible by the chunk size.

D

dev.zachmaddox.chunking - package dev.zachmaddox.chunking
 
DROP_PARTIAL - Enum constant in enum dev.zachmaddox.chunking.Chunking.RemainderPolicy
Drop the final chunk if it is smaller than chunkSize.

E

ERROR_IF_PARTIAL - Enum constant in enum dev.zachmaddox.chunking.Chunking.RemainderPolicy
Fail fast if the input size is not evenly divisible by chunkSize.

F

forEachChunk(Stream<T>, int, Chunking.RemainderPolicy, Consumer<? super List<T>>) - Static method in class dev.zachmaddox.chunking.Chunking
Processes each fixed-size chunk from the given source stream using the provided consumer, with an explicit Chunking.RemainderPolicy.
forEachChunk(Stream<T>, int, Consumer<? super List<T>>) - Static method in class dev.zachmaddox.chunking.Chunking
Processes each fixed-size chunk from the given source stream using the provided consumer, without materializing all chunks in memory at once.

I

INCLUDE_PARTIAL - Enum constant in enum dev.zachmaddox.chunking.Chunking.RemainderPolicy
Include the final partial chunk (default behavior).

P

PAD_WITH_NULLS - Enum constant in enum dev.zachmaddox.chunking.Chunking.RemainderPolicy
Pad the final chunk with null values until it reaches chunkSize.

S

slidingWindows(int, int) - Static method in class dev.zachmaddox.chunking.Chunking
Returns a Collector that produces sliding windows of size windowSize with step step.
streamOfChunks(Stream<T>, int) - Static method in class dev.zachmaddox.chunking.Chunking
Returns a Stream of fixed-size chunks from the given source stream.
streamOfChunks(Stream<T>, int, Chunking.RemainderPolicy) - Static method in class dev.zachmaddox.chunking.Chunking
Returns a Stream of fixed-size chunks from the given source stream, using the given Chunking.RemainderPolicy.
streamOfSlidingWindows(Stream<T>, int) - Static method in class dev.zachmaddox.chunking.Chunking
Returns a Stream of sliding windows of size windowSize with step 1.
streamOfSlidingWindows(Stream<T>, int, int) - Static method in class dev.zachmaddox.chunking.Chunking
Returns a Stream of sliding windows of size windowSize with the given step.

T

toChunks(int) - Static method in class dev.zachmaddox.chunking.Chunking
Returns a Collector that groups elements into chunks of chunkSize, including the final partial chunk if any.
toChunks(int, Chunking.RemainderPolicy) - Static method in class dev.zachmaddox.chunking.Chunking
Returns a Collector that groups elements into chunks of chunkSize, using the provided Chunking.RemainderPolicy.
toChunks(int, Chunking.RemainderPolicy, IntFunction<C>) - Static method in class dev.zachmaddox.chunking.Chunking
Returns a Collector that groups elements into chunks of chunkSize, using both a custom Chunking.RemainderPolicy and a custom chunk list implementation.
toChunks(int, Chunking.RemainderPolicy, IntFunction<C>, Supplier<OC>) - Static method in class dev.zachmaddox.chunking.Chunking
Returns a Collector that groups elements into chunks of chunkSize, using a custom Chunking.RemainderPolicy, a custom chunk list implementation, and a custom outer collection type.
toChunks(int, IntFunction<C>) - Static method in class dev.zachmaddox.chunking.Chunking
Returns a Collector that groups elements into chunks of chunkSize, using a custom list implementation for each chunk.
toDoubleChunks(int) - Static method in class dev.zachmaddox.chunking.Chunking
Convenience collector for DoubleStreams.
toIntChunks(int) - Static method in class dev.zachmaddox.chunking.Chunking
Convenience collector for IntStreams.
toLongChunks(int) - Static method in class dev.zachmaddox.chunking.Chunking
Convenience collector for LongStreams.

V

valueOf(String) - Static method in enum dev.zachmaddox.chunking.Chunking.RemainderPolicy
Returns the enum constant of this type with the specified name.
values() - Static method in enum dev.zachmaddox.chunking.Chunking.RemainderPolicy
Returns an array containing the constants of this enum type, in the order they are declared.

W

weightedChunks(long, ToLongFunction<? super T>) - Static method in class dev.zachmaddox.chunking.Chunking
Returns a Collector that groups elements into chunks such that the sum of weights (as provided by weigher) within each chunk is <= maxWeight.
C D E F I P S T V W 
All Classes and Interfaces|All Packages