Interface MockUnitLong

All Superinterfaces:
MockUnit<java.lang.Long>
All Known Implementing Classes:
Longs, LongSeq

public interface MockUnitLong
extends MockUnit<java.lang.Long>
  • Method Details

    • longStream

      default MockUnit<java.util.stream.LongStream> longStream()

      Transforms an existing MockUnitLong into a MockUnit<LongStream>.

      The LongStream will be "infinite" and will contain values generated by the internal MockUnitLong supplier.

      Returns:
      A new MockUnit<LongStream>
    • arrayPrimitive

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

      Transforms an existing MockUnitLong into a MockUnit<long[]>.

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

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

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

      Transforms an existing MockUnitLong into a MockUnit<Long[]>.

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

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