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 Details

    • 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.