## Uses of Class
java.lang.SafeVarargs

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

- - ### Uses of SafeVarargs in java.util

    Methods in java.util with annotations of type SafeVarargs
    Modifier and Type | Method and Description
    --- | ---
    `static <T> boolean` | Collections.`addAll(Collection<? super T> c, T... elements)` Adds all of the specified elements to the specified collection.
    `static <T> List<T>` | Arrays.`asList(T... a)` Returns a fixed-size list backed by the specified array.
    `static <E extends Enum<E>> EnumSet<E>` | EnumSet.`of(E first, E... rest)` Creates an enum set initially containing the specified elements.

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

    Methods in java.util.stream with annotations of type SafeVarargs
    Modifier and Type | Method and Description
    --- | ---
    `static <T> Stream<T>` | Stream.`of(T... values)` Returns a sequential ordered stream whose elements are the specified values.

Copyright © 2025 API Design. All Rights Reserved.