Class ListUtil


  • public class ListUtil
    extends java.lang.Object
    Util (general purpose) methods dealing with List.
    • Constructor Summary

      Constructors 
      Constructor Description
      ListUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T getLast​(java.util.List<T> list)  
      • Methods inherited from class java.lang.Object

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

      • ListUtil

        public ListUtil()
    • Method Detail

      • getLast

        public static <T> T getLast​(java.util.List<T> list)
        Type Parameters:
        T - Type of elements in the list
        Parameters:
        list - [!list.isEmpty()]
        Returns:
        the last element of the list