Class Sets

  • All Implemented Interfaces:
    Utils

    public abstract class Sets
    extends java.lang.Object
    implements Utils
    The utility class for Set for Modern JDK(9+), which supports the feedback if Java Runtime is below JDK 9.
    Since:
    1.0.0
    Author:
    Mercy
    See Also:
    SetUtils
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <E> java.util.Set<E> ofSet​(E... elements)
      Returns an unmodifiable set containing an arbitrary number of elements.
      • Methods inherited from class java.lang.Object

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

      • ofSet

        public static <E> java.util.Set<E> ofSet​(E... elements)
        Returns an unmodifiable set containing an arbitrary number of elements.
        Type Parameters:
        E - the element type
        Parameters:
        elements - the elements array
        Returns:
        non-null
        See Also:
        SetUtils#ofSet(E...)