Class List

  • All Implemented Interfaces:
    java.util.function.LongFunction<java.util.List<java.lang.Object>>

    public class List
    extends java.lang.Object
    implements java.util.function.LongFunction<java.util.List<java.lang.Object>>
    Create a List from a long input based on two functions, the first to determine the list size, and the second to populate the list with object values. The input fed to the second function is incremented between elements. To directly create Lists of Strings from the String version of the same mapping functions, simply use StringList instead.
    • Constructor Summary

      Constructors 
      Constructor Description
      List​(java.util.function.LongToIntFunction sizeFunc, java.util.function.LongFunction<java.lang.Object> valueFunc)  
    • Method Summary

      Modifier and Type Method Description
      java.util.List<java.lang.Object> apply​(long value)  
      • Methods inherited from class java.lang.Object

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

      • List

        public List​(java.util.function.LongToIntFunction sizeFunc,
                    java.util.function.LongFunction<java.lang.Object> valueFunc)
    • Method Detail

      • apply

        public java.util.List<java.lang.Object> apply​(long value)
        Specified by:
        apply in interface java.util.function.LongFunction<java.util.List<java.lang.Object>>