Interface MockUnitFloat
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default MockUnit<java.lang.Float[]>array(int size)Transforms an existingMockUnitFloatinto aMockUnit<Float[]>.default MockUnit<float[]>arrayPrimitive(int size)Transforms an existingMockUnitFloatinto aMockUnit<float[]>.default MockUnit<java.util.stream.DoubleStream>doubleStream()Transforms an existingMockUnitFloatinto 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
MockUnitFloatinto aMockUnit<DoubleStream>.The DoubleStream will be "infinite" and will contain values generated by the internal
MockUnitFloatsupplier.Note: The reason we are returning a
DoubleStreamis because noFloatStreamexists.- Returns:
- A new
MockUnit<DoubleStream>
-
arrayPrimitive
default MockUnit<float[]> arrayPrimitive(int size)
Transforms an existing
MockUnitFloatinto aMockUnit<float[]>.The values in the array will be generated using the
MockUnitFloatsupplier.- Parameters:
size- The size of the Array- Returns:
- A new
MockUnit<float[]>
-
array
default MockUnit<java.lang.Float[]> array(int size)
Transforms an existing
MockUnitFloatinto aMockUnit<Float[]>.The values in the array will be generated using the
MockUnitFloatsupplier.- Parameters:
size- The size of the Array- Returns:
- A new
MockUnit<Float[]>
-
-