org.infinispan.cdi.util
Class CollectionsHelper
java.lang.Object
org.infinispan.cdi.util.CollectionsHelper
public final class CollectionsHelper
- extends Object
An helper class providing useful methods to work with JDK collections.
- Author:
- Kevin Pollet (C) 2011 SERLI
Method Summary |
static
|
asSet(T... elements)
Creates a Set with the given elements. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
asSet
public static <T> Set<T> asSet(T... elements)
- Creates a
Set
with the given elements.
- Type Parameters:
T
- the element type.- Parameters:
elements
- the elements.
- Returns:
- a new
Set
instance containing the given elements.
- Throws:
NullPointerException
- if parameter elements is null
.
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.