Interface MockUnitDouble

All Superinterfaces:
MockUnit<java.lang.Double>
All Known Implementing Classes:
Doubles

public interface MockUnitDouble
extends MockUnit<java.lang.Double>
  • Method Details

    • doubleStream

      default MockUnit<java.util.stream.DoubleStream> doubleStream()

      Transforms an existing MockUnitDouble into a MockUnit<DoubleStream>.

      The DoubleStream will be "infinite" and will contain values generated by the internal MockUnitDouble supplier.

      Returns:
      A new MockUnit<DoubleStream>
    • arrayPrimitive

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

      Transforms an existing MockUnitDouble into a MockUnit<double[]>.

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

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

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

      Transforms an existing MockUnitDouble into a MockUnit<Double[]>

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

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