Class SetUtils


  • public class SetUtils
    extends java.lang.Object
    Utilities for manipulation of Set.
    • Constructor Summary

      Constructors 
      Constructor Description
      SetUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <E> java.util.Set<E> newHashSet​(E... elements)
      Returns a new HashSet with the given elements
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SetUtils

        public SetUtils()
    • Method Detail

      • newHashSet

        @SafeVarargs
        public static <E> java.util.Set<E> newHashSet​(E... elements)
        Returns a new HashSet with the given elements
        Parameters:
        elements - The elements
        Returns:
        A new HashSet with the given elements