Interface MockUnitInt

All Superinterfaces:
MockUnit<java.lang.Integer>
All Known Implementing Classes:
Ints, IntSeq, Primes

public interface MockUnitInt
extends MockUnit<java.lang.Integer>
  • Method Details

    • intStream

      default MockUnit<java.util.stream.IntStream> intStream()

      Transforms an existing MockUnitInt into a MockUnit<IntStream>.

      The IntStream will be "infinite" and will contain values generated by the internal MockUnitInt supplier.

      Returns:
      A new MockUnit<IntStream>
    • arrayPrimitive

      default MockUnit<int[]> arrayPrimitive​(int size)

      Transforms an existing MockUnitInt into a MockUnit<int[]>.

      The values in the array will be generated using the MockUnitInt supplier.

      Parameters:
      size - The size of the Array
      Returns:
      A new MockUnit<int[]>
    • array

      default MockUnit<java.lang.Integer[]> array​(int size)

      Transforms an existing MockUnitInt into a MockUnit<Integer[]>.

      The values in the array will be generated using the MockUnitInt supplier.

      Parameters:
      size - The size of the Array
      Returns:
      A new MockUnit<Integer[]>