Class ListToolkit


  • public class ListToolkit
    extends java.lang.Object
    Various methods that work with lists.
    • Constructor Summary

      Constructors 
      Constructor Description
      ListToolkit()  
    • Method Summary

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

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

      • ListToolkit

        public ListToolkit()
    • Method Detail

      • backwards

        public static <T> java.lang.Iterable<T> backwards​(java.util.List<T> list)
        Iterate backwards over a list.
        Parameters:
        list - list to iterate over
        Returns:
        an iterator that traverses the list backwards