Interface MockUnitDouble
- All Superinterfaces:
MockUnit<java.lang.Double>
- All Known Implementing Classes:
Doubles
public interface MockUnitDouble extends MockUnit<java.lang.Double>
-
Method Summary
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 Details
-
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
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
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[]>
-