Class ObjectMap
java.lang.Object
net.andreinc.mockneat.abstraction.MockUnitBase
net.andreinc.mockneat.unit.objects.ObjectMap
- All Implemented Interfaces:
MockUnit<java.util.Map<java.lang.String,java.lang.Object>>
public class ObjectMap extends MockUnitBase implements MockUnit<java.util.Map<java.lang.String,java.lang.Object>>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description static ObjectMapobjectMap()Returns a newObjectMapobject that can be used to easily generate json files.ObjectMapput(java.lang.String value, java.lang.Character unit)ObjectMapput(java.lang.String value, java.lang.Double unit)ObjectMapput(java.lang.String value, java.lang.Integer unit)ObjectMapput(java.lang.String value, java.lang.Long unit)ObjectMapput(java.lang.String value, java.lang.String unit)ObjectMapput(java.lang.String value, MockUnit<?> unit)java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>>supplier()This is the sole abstract method of the interface.protected static java.util.Map<java.lang.String,java.lang.Object>traverseObject(ObjectMap ojMap)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.andreinc.mockneat.abstraction.MockUnit
array, array, collection, collection, collection, collection, collection, collection, consume, consume, get, get, list, list, list, list, list, list, map, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapToDouble, mapToInt, mapToLocalDate, mapToLong, mapToString, mapToString, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, serialize, set, set, set, set, set, set, stream, val, val, valStr, valStr
-
Constructor Details
-
Method Details
-
objectMap
Returns a new
ObjectMapobject that can be used to easily generate json files.- Returns:
- An objectMap object used to easily generate json files
-
supplier
public java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>> supplier()Description copied from interface:MockUnitThis is the sole abstract method of the interface. Needs to be implemented every-time a MockUnit is implemented. -
put
-
put
-
put
-
put
-
put
-
put
-
traverseObject
-