Uses of Interface
java.util.function.IntConsumer
Packages that use IntConsumer
Package
Description
Contains the collections framework, some internationalization support classes,
a service loader, properties, random number generation, string parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
Functional interfaces provide target types for lambda expressions
and method references.
Classes to support functional-style operations on streams of elements, such
as map-reduce transformations on collections.
-
Uses of IntConsumer in java.util
Classes in java.util that implement IntConsumerModifier and TypeClassDescriptionclassA state object for collecting statistics such as count, min, max, sum, and average.classA state object for collecting statistics such as count, min, max, sum, and average.Subinterfaces with type arguments of type IntConsumer in java.utilModifier and TypeInterfaceDescriptionstatic interfaceAn Iterator specialized forintvalues.static interfaceA Spliterator specialized forintvalues.Methods in java.util with parameters of type IntConsumerModifier and TypeMethodDescriptiondefault voidPrimitiveIterator.OfInt.forEachRemaining(IntConsumer action) Performs the given action for each remaining element until all elements have been processed or the action throws an exception.voidOptionalInt.ifPresent(IntConsumer action) If a value is present, performs the given action with the value, otherwise does nothing.voidOptionalInt.ifPresentOrElse(IntConsumer action, Runnable emptyAction) If a value is present, performs the given action with the value, otherwise performs the given empty-based action. -
Uses of IntConsumer in java.util.function
Methods in java.util.function that return IntConsumerModifier and TypeMethodDescriptiondefault IntConsumerIntConsumer.andThen(IntConsumer after) Returns a composedIntConsumerthat performs, in sequence, this operation followed by theafteroperation.Methods in java.util.function with parameters of type IntConsumerModifier and TypeMethodDescriptiondefault IntConsumerIntConsumer.andThen(IntConsumer after) Returns a composedIntConsumerthat performs, in sequence, this operation followed by theafteroperation. -
Uses of IntConsumer in java.util.stream
Subinterfaces of IntConsumer in java.util.streamModifier and TypeInterfaceDescriptionstatic interfaceA mutable builder for anIntStream.Methods in java.util.stream with parameters of type IntConsumerModifier and TypeMethodDescriptionvoidIntStream.IntMapMultiConsumer.accept(int value, IntConsumer ic) Replaces the givenvaluewith zero or more values by feeding the mapped values to theicconsumer.voidIntStream.forEach(IntConsumer action) Performs an action for each element of this stream.voidIntStream.forEachOrdered(IntConsumer action) Performs an action for each element of this stream, guaranteeing that each element is processed in encounter order for streams that have a defined encounter order.IntStream.peek(IntConsumer action) Returns a stream consisting of the elements of this stream, additionally performing the provided action on each element as elements are consumed from the resulting stream.Method parameters in java.util.stream with type arguments of type IntConsumerModifier and TypeMethodDescriptiondefault IntStreamStream.mapMultiToInt(BiConsumer<? super T, ? super IntConsumer> mapper) Returns anIntStreamconsisting of the results of replacing each element of this stream with multiple elements, specifically zero or more elements.