Interface MockUnitLong
- All Superinterfaces:
MockUnit<java.lang.Long>
public interface MockUnitLong extends MockUnit<java.lang.Long>
-
Method Summary
Modifier and Type Method Description default MockUnit<java.lang.Long[]>array(int size)Transforms an existingMockUnitLonginto aMockUnit<Long[]>.default MockUnit<long[]>arrayPrimitive(int size)Transforms an existingMockUnitLonginto aMockUnit<long[]>.default MockUnit<java.util.stream.LongStream>longStream()Transforms an existingMockUnitLonginto aMockUnit<LongStream>.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
-
longStream
Transforms an existing
MockUnitLonginto aMockUnit<LongStream>.The
LongStreamwill be "infinite" and will contain values generated by the internalMockUnitLongsupplier.- Returns:
- A new
MockUnit<LongStream>
-
arrayPrimitive
Transforms an existing
MockUnitLonginto aMockUnit<long[]>.The values in the array will be generated using the
MockUnitLongsupplier.- Parameters:
size- The size of the Array- Returns:
- A new
MockUnit<long[]>
-
array
Transforms an existing
MockUnitLonginto aMockUnit<Long[]>.The values in the array will be generated using the
MockUnitLongsupplier.- Parameters:
size- The size of the Array- Returns:
- A new
MockUnit<Long[]>
-