Class ListUtil


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

    Adapted from https://code.google.com/p/treelayout/ to be available to GWT clients

    • Constructor Detail

      • ListUtil

        public ListUtil()
    • Method Detail

      • getLast

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