Class SetsUtils


  • public final class SetsUtils
    extends java.lang.Object
    Some utilities for Sets.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> java.util.Set<T> create​(T... values)
      Create a HashSet with the given initial values.
      • Methods inherited from class java.lang.Object

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

      • create

        @SafeVarargs
        public static <T> java.util.Set<T> create​(T... values)
        Create a HashSet with the given initial values.
        Type Parameters:
        T - The type.
        Parameters:
        values - The values