Uses of Interface
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.utilModifier and TypeClassDescription
classA 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.Modifier and TypeMethodDescription
default voidPerforms the given action for each remaining element until all elements have been processed or the action throws an exception.
voidIf a value is present, performs the given action with the value, otherwise does nothing.
voidIf a value is present, performs the given action with the value, otherwise performs the given empty-based action.
Uses of IntConsumer in java.util.functionModifier and TypeMethodDescription
default IntConsumerReturns a composed
IntConsumerthat performs, in sequence, this operation followed by the
Uses of IntConsumer in java.util.streamModifier and TypeInterfaceDescription
static interfaceA mutable builder for an
IntStream.Modifier and TypeMethodDescription
voidReplaces the given
valuewith zero or more values by feeding the mapped values to the
voidPerforms an action for each element of this stream.
voidPerforms 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.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.