Interface MockUnitDouble
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default MockUnit<java.lang.Double[]>array(int size)Transforms an existingMockUnitDoubleinto aMockUnit<Double[]>default MockUnit<double[]>arrayPrimitive(int size)Transforms an existingMockUnitDoubleinto aMockUnit<double[]>.default MockUnit<java.util.stream.DoubleStream>doubleStream()Transforms an existingMockUnitDoubleinto aMockUnit<DoubleStream>.-
Methods 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, supplier, val, val, valStr, valStr
-
-
-
-
Method Detail
-
doubleStream
default MockUnit<java.util.stream.DoubleStream> doubleStream()
Transforms an existing
MockUnitDoubleinto aMockUnit<DoubleStream>.The DoubleStream will be "infinite" and will contain values generated by the internal
MockUnitDoublesupplier.- Returns:
- A new
MockUnit<DoubleStream>
-
arrayPrimitive
default MockUnit<double[]> arrayPrimitive(int size)
Transforms an existing
MockUnitDoubleinto aMockUnit<double[]>.The values in the array will be generated using the
MockUnitDoublesupplier.- Parameters:
size- The size of the array.- Returns:
- A new
MockUnit<double[]>
-
array
default MockUnit<java.lang.Double[]> array(int size)
Transforms an existing
MockUnitDoubleinto aMockUnit<Double[]>The values in the array will be generated using the
MockUnitDoublesupplier.- Parameters:
size- The size of the array- Returns:
- A new
MockUnit<Double[]>
-
-