public final class CollectionsHelper extends Object
Modifier and Type | Method and Description |
---|---|
static <T> Set<T> |
asSet(T... elements)
Creates a
Set with the given elements. |
public static <T> Set<T> asSet(T... elements)
Set
with the given elements.T
- the element type.elements
- the elements.Set
instance containing the given elements.NullPointerException
- if parameter elements is null
.Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.