Package org.infinispan.jcache.annotation
Class CollectionsHelper
java.lang.Object
org.infinispan.jcache.annotation.CollectionsHelper
An helper class providing useful methods to work with JDK collections.
- Author:
- Kevin Pollet <kevin.pollet@serli.com> (C) 2011 SERLI
-
Method Summary
-
Method Details
-
asSet
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.
-