Interface MockUnitInt
- All Superinterfaces:
MockUnit<java.lang.Integer>
public interface MockUnitInt extends MockUnit<java.lang.Integer>
-
Method Summary
Modifier and Type Method Description default MockUnit<java.lang.Integer[]>array(int size)Transforms an existingMockUnitIntinto aMockUnit<Integer[]>.default MockUnit<int[]>arrayPrimitive(int size)Transforms an existingMockUnitIntinto aMockUnit<int[]>.default MockUnit<java.util.stream.IntStream>intStream()Transforms an existingMockUnitIntinto aMockUnit<IntStream>.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
-
intStream
Transforms an existing
MockUnitIntinto aMockUnit<IntStream>.The
IntStreamwill be "infinite" and will contain values generated by the internalMockUnitIntsupplier.- Returns:
- A new
MockUnit<IntStream>
-
arrayPrimitive
Transforms an existing
MockUnitIntinto aMockUnit<int[]>.The values in the array will be generated using the
MockUnitIntsupplier.- Parameters:
size- The size of the Array- Returns:
- A new
MockUnit<int[]>
-
array
Transforms an existing
MockUnitIntinto aMockUnit<Integer[]>.The values in the array will be generated using the
MockUnitIntsupplier.- Parameters:
size- The size of the Array- Returns:
- A new
MockUnit<Integer[]>
-