## Uses of Class
java.lang.Integer

- Packages that use Integer
  Package | Description
  --- | ---
  java.lang |
  java.util |
  java.util.stream | Classes to support functional-style operations on streams of elements, such as map-reduce transformations on collections.

- - ### Uses of Integer in java.lang

    Fields in java.lang with type parameters of type Integer
    Modifier and Type | Field and Description
    --- | ---
    `static Class<Integer>` | Integer.`TYPE` The `Class` instance representing the primitive type `int`.

    Methods in java.lang that return Integer
    Modifier and Type | Method and Description
    --- | ---
    `static Integer` | Integer.`decode(String nm)` Decodes a `String` into an `Integer`.
    `static Integer` | Integer.`getInteger(String nm)` Determines the integer value of the system property with the specified name.
    `static Integer` | Integer.`getInteger(String nm, int val)` Determines the integer value of the system property with the specified name.
    `static Integer` | Integer.`getInteger(String nm, Integer val)` Returns the integer value of the system property with the specified name.
    `static Integer` | Integer.`valueOf(int i)` Returns an `Integer` instance representing the specified `int` value.
    `static Integer` | Integer.`valueOf(String s)` Returns an `Integer` object holding the value of the specified `String`.
    `static Integer` | Integer.`valueOf(String s, int radix)` Returns an `Integer` object holding the value extracted from the specified `String` when parsed with the radix given by the second argument.

    Methods in java.lang with parameters of type Integer
    Modifier and Type | Method and Description
    --- | ---
    `int` | Integer.`compareTo(Integer anotherInteger)` Compares two `Integer` objects numerically.
    `static Integer` | Integer.`getInteger(String nm, Integer val)` Returns the integer value of the system property with the specified name.

  - ### Uses of Integer in java.util

    Methods in java.util that return Integer
    Modifier and Type | Method and Description
    --- | ---
    `default Integer` | PrimitiveIterator.OfInt.`next()` Returns the next element in the iteration.

    Methods in java.util that return types with arguments of type Integer
    Modifier and Type | Method and Description
    --- | ---
    `Map<String,Integer>` | Calendar.`getDisplayNames(int field, int style, Locale locale)` Returns a `Map` containing all names of the calendar `field` in the given `style` and `locale` and their corresponding field values.

    Method parameters in java.util with type arguments of type Integer
    Modifier and Type | Method and Description
    --- | ---
    `default void` | Spliterator.OfInt.`forEachRemaining(Consumer<? super Integer> action)` Performs the given action for each remaining element, sequentially in the current thread, until all elements have been processed or the action throws an exception.
    `default void` | PrimitiveIterator.OfInt.`forEachRemaining(Consumer<? super Integer> action)` Performs the given action for each remaining element until all elements have been processed or the action throws an exception.
    `default boolean` | Spliterator.OfInt.`tryAdvance(Consumer<? super Integer> action)` If a remaining element exists, performs the given action on it, returning `true`; else returns `false`.

  - ### Uses of Integer in java.util.stream

    Methods in java.util.stream that return types with arguments of type Integer
    Modifier and Type | Method and Description
    --- | ---
    `Stream<Integer>` | IntStream.`boxed()` Returns a `Stream` consisting of the elements of this stream, each boxed to an `Integer`.
    `static <T> Collector<T,?,Integer>` | Collectors.`summingInt(ToIntFunction<? super T> mapper)` Returns a `Collector` that produces the sum of a integer-valued function applied to the input elements.

Copyright © 2025 API Design. All Rights Reserved.