This specification is not final and is subject to change. Use is subject to
Packages that use SafeVarargs
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.
Classes to support functional-style operations on streams of elements, such
as map-reduce transformations on collections.
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Methods in java.util with annotations of type SafeVarargs
Modifier and Type
static <T> boolean
Collections. ( addAll Collection<? super T> c,
Adds all of the specified elements to the specified collection.
Arrays. (T... a) asList
Returns a fixed-size list backed by the specified array.
static <E extends
EnumSet. (E first,
E... rest) of
Creates an enum set initially containing the specified elements.
List. (E... elements) of
Returns an unmodifiable list containing an arbitrary number of elements.
Set. (E... elements) of
Returns an unmodifiable set containing an arbitrary number of elements.
Map. ( ofEntries Map.Entry<? extends K,? extends V>... entries)
Returns an unmodifiable map containing keys and values extracted from the given entries.
Methods in java.util.stream with annotations of type SafeVarargs
Modifier and Type
Stream. (T... values) of
Returns a sequential ordered stream whose elements are the specified values.
Report a bug or suggest an enhancement For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries. Copyright © 1993, 2019, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA. All rights reserved. Use is subject to license terms and the documentation redistribution policy. DRAFT 13-ea+9