Class Map

  • All Implemented Interfaces:
    java.util.function.LongFunction<java.util.Map<java.lang.Object,​java.lang.Object>>

    public class Map
    extends java.lang.Object
    implements java.util.function.LongFunction<java.util.Map<java.lang.Object,​java.lang.Object>>
    Create a Map from a long input based on three functions, the first to determine the map size, and the second to populate the map with key objects, and the third to populate the map with value objects. The long input fed to the second and third functions is incremented between entries. To directly create Maps with key and value Strings using the same mapping functions, simply use StringMap instead.
    • Constructor Summary

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

      Modifier and Type Method Description
      java.util.Map<java.lang.Object,​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

      • Map

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

      • apply

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