Class Set

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

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

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

      Modifier and Type Method Description
      java.util.Set<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

      • Set

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

      • apply

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