We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc7f354 commit 86e8b1aCopy full SHA for 86e8b1a
src/main/java/com/nitorcreations/collections/NSets.java
@@ -20,6 +20,7 @@ private NSets() { /** prevent instantiation */}
20
* @param <V> the type of the element
21
* @return the set containing the values
22
*/
23
+ @SafeVarargs
24
public static <V> Set<V> asSet(V... values) {
25
return new HashSet<>(asList(values));
26
}
0 commit comments