Package org.infinispan.jcache.annotation
Class CollectionsHelper
- java.lang.Object
-
- org.infinispan.jcache.annotation.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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Set<T>
asSet(T... elements)
Creates aSet
with the given elements.
-
-
-
Method Detail
-
asSet
public static <T> Set<T> asSet(T... elements)
Creates aSet
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 isnull
.
-
-