Class Lists

  • All Implemented Interfaces:
    Utils

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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <E> java.util.List<E> ofList​(E... elements)
      Returns an unmodifiable list 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

      • ofList

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