Class 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 Detail

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