Class ListHelpers


  • public class ListHelpers
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ListHelpers()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object getLastElement​(java.util.List list, boolean reverse)  
      static <V extends java.lang.Comparable>
      boolean
      isSorted​(java.util.List<V> list, boolean reverse)  
      • Methods inherited from class java.lang.Object

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

      • ListHelpers

        public ListHelpers()
    • Method Detail

      • getLastElement

        public static java.lang.Object getLastElement​(java.util.List list,
                                                      boolean reverse)
      • isSorted

        public static <V extends java.lang.Comparable> boolean isSorted​(java.util.List<V> list,
                                                                        boolean reverse)