Uses of Enum
dev.zachmaddox.chunking.Chunking.RemainderPolicy
-
Uses of Chunking.RemainderPolicy in dev.zachmaddox.chunking
Methods in dev.zachmaddox.chunking that return Chunking.RemainderPolicyModifier and TypeMethodDescriptionstatic Chunking.RemainderPolicyReturns the enum constant of this type with the specified name.static Chunking.RemainderPolicy[]Chunking.RemainderPolicy.values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in dev.zachmaddox.chunking with parameters of type Chunking.RemainderPolicyModifier and TypeMethodDescriptionstatic <T> voidChunking.forEachChunk(Stream<T> source, int chunkSize, Chunking.RemainderPolicy remainderPolicy, Consumer<? super List<T>> chunkHandler) Processes each fixed-size chunk from the given source stream using the provided consumer, with an explicitChunking.RemainderPolicy.Chunking.streamOfChunks(Stream<T> source, int chunkSize, Chunking.RemainderPolicy remainderPolicy) Returns aStreamof fixed-size chunks from the given source stream, using the givenChunking.RemainderPolicy.Chunking.toChunks(int chunkSize, Chunking.RemainderPolicy remainderPolicy) Returns aCollectorthat groups elements into chunks ofchunkSize, using the providedChunking.RemainderPolicy.Chunking.toChunks(int chunkSize, Chunking.RemainderPolicy remainderPolicy, IntFunction<C> chunkFactory) Returns aCollectorthat groups elements into chunks ofchunkSize, using both a customChunking.RemainderPolicyand a custom chunk list implementation.static <T,C extends List<T>, OC extends Collection<C>>
Collector<T,?, OC> Chunking.toChunks(int chunkSize, Chunking.RemainderPolicy remainderPolicy, IntFunction<C> chunkFactory, Supplier<OC> outerCollectionFactory) Returns aCollectorthat groups elements into chunks ofchunkSize, using a customChunking.RemainderPolicy, a custom chunk list implementation, and a custom outer collection type.