Class StringMap
- java.lang.Object
-
- io.virtdata.libbasics.shared.from_long.to_collection.StringMap
-
- All Implemented Interfaces:
java.util.function.LongFunction<java.util.Map<java.lang.String,java.lang.String>>
public class StringMap extends java.lang.Object implements java.util.function.LongFunction<java.util.Map<java.lang.String,java.lang.String>>Create aMap<String,String>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. Regardless of the object type provided by the second and third functions,Object.toString()is used to determine the key and value to add to the map. To create Maps of any key and value types, simply useMapwith an specific key and value mapping functions.
-
-
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>apply(long value)
-
-
-
Constructor Detail
-
StringMap
public StringMap(java.util.function.LongToIntFunction sizeFunc, java.util.function.LongFunction<java.lang.Object> keyFunc, java.util.function.LongFunction<java.lang.Object> valueFunc)
-
StringMap
@SafeVarargs public StringMap(java.util.function.LongFunction<java.lang.Object>... objfuncs)
-
-