Class ListUtils


  • public final class ListUtils
    extends 
    Since:
    1.0
    Author:
    Daniel Fernández
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean <?> target,  element)  
      static boolean <?> target, [] elements)  
      static boolean <?> target, <?> elements)  
      static boolean <?> target)  
      static int <?> target)  
      static <T extends <? super T>>
      <T>
      <T> list)
      Creates an new instance of the list add the sorted list to it.
      static <T> <T> <T> list, <? super T> c)
      Creates an new instance of the list add the sorted list to it.
      static <?>  target)  
      • Methods inherited from class java.lang.

        , , , , , , , , , ,
    • Method Detail

      • toList

        public static <?> toList​( target)
      • size

        public static int size​(<?> target)
      • isEmpty

        public static boolean isEmpty​(<?> target)
      • contains

        public static boolean contains​(<?> target,
                                        element)
      • containsAll

        public static boolean containsAll​(<?> target,
                                          [] elements)
      • containsAll

        public static boolean containsAll​(<?> target,
                                          <?> elements)
      • sort

        public static <T extends <? super T>> <T> sort​(<T> list)

        Creates an new instance of the list add the sorted list to it.

        Type Parameters:
        T - the type of the list elements.
        Parameters:
        list - the list which content should be ordered.
        Returns:
        a new sorted list.
        See Also:
      • sort

        public static <T> <T> sort​(<T> list,
                                       <? super T> c)

        Creates an new instance of the list add the sorted list to it.

        Type Parameters:
        T - the type of the list elements.
        Parameters:
        list - the list which content should be ordered.
        c - the comparator.
        Returns:
        a new sorted list.
        See Also: