Class ListTools

  • All Implemented Interfaces:
    java.io.Serializable

    public class ListTools
    extends java.lang.Object
    implements java.io.Serializable
    Author:
    Matthew Pocock, Thomas Down, Mark Schreiber
    See Also:
    Serialized Form
    • Method Detail

      • nonRemoveIterator

        public static java.util.Iterator nonRemoveIterator​(java.util.Iterator i)
      • createList

        public static java.util.List createList​(java.util.List l)
      • createList

        public static java.util.List createList​(java.lang.Object[] a)
      • createSeriesList

        public static ListTools.SeriesList createSeriesList​(java.lang.String leader,
                                                            java.lang.String trailer,
                                                            int size)
        Create a new SeriesList with the given leader, trailer and size.
        Parameters:
        leader - the String that will prefix the index
        trailer - the String that will suffix the index
        size - the length of the list
        Throws:
        java.lang.NullPointerException - if leader or trailer are null (use the empty string instead)
        java.lang.IllegalArgumentException - if the size is negative