Class ListUtil


  • public class ListUtil
    extends Object
    Util (general purpose) methods dealing with List.
    Author:
    Udo Borkowski (ub@abego.org)
    • Constructor Detail

      • ListUtil

        public ListUtil()
    • Method Detail

      • getLast

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