Interface MockUnitFloat

  • All Superinterfaces:
    MockUnit<java.lang.Float>
    All Known Implementing Classes:
    Floats

    public interface MockUnitFloat
    extends MockUnit<java.lang.Float>
    • Method Detail

      • doubleStream

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

        Transforms an existing MockUnitFloat into a MockUnit<DoubleStream>.

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

        Note: The reason we are returning a DoubleStream is because no FloatStream exists.

        Returns:
        A new MockUnit<DoubleStream>
      • arrayPrimitive

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

        Transforms an existing MockUnitFloat into a MockUnit<float[]>.

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

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

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

        Transforms an existing MockUnitFloat into a MockUnit<Float[]>.

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

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