Class CollectionUtils


  • public class CollectionUtils
    extends java.lang.Object
    Miscellaneous utility functions for collections that Sun neglected to make.
    • Constructor Summary

      Constructors 
      Constructor Description
      CollectionUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> java.util.List<T> list​(T... args)
      Return all the arguments as a list.
      • Methods inherited from class java.lang.Object

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

      • list

        public static <T> java.util.List<T> list​(T... args)
        Return all the arguments as a list.
        Parameters:
        args - Objects to put into a list
        Returns:
        A list containing all the objects in that order