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 <kevin.pollet@serli.com> (C) 2011 SERLI
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Set<T>asSet(T... elements)Creates aSetwith the given elements.
-
-
-
Method Detail
-
asSet
public static <T> Set<T> asSet(T... elements)
Creates aSetwith the given elements.- Type Parameters:
T- the element type.- Parameters:
elements- the elements.- Returns:
- a new
Setinstance containing the given elements. - Throws:
NullPointerException- if parameter elements isnull.
-
-