java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_long.to_collection.StringList
All Implemented Interfaces:
java.util.function.LongFunction<java.util.List<java.lang.String>>

@Deprecated
public class StringList
extends java.lang.Object
implements java.util.function.LongFunction<java.util.List<java.lang.String>>
Deprecated.
Create a List<String> from a long value, based on two functions, the first to determine the list size, and the second to populate the list with String values. The input fed to the second function is incremented between elements. Regardless of the object type provided by the second function, Object.toString() is used to get the value to add to the list.

To create Lists of any type of object simply use List with an specific value mapping function.

  • Constructor Summary

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

    Modifier and Type Method Description
    java.util.List<java.lang.String> apply​(long value)
    Deprecated.
     

    Methods inherited from class java.lang.Object

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

    • StringList

      public StringList​(java.util.function.LongToIntFunction sizeFunc, java.util.function.LongFunction<java.lang.Object> valueFunc)
      Deprecated.
  • Method Details

    • apply

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