Class PrimitiveDouble

java.lang.Object
ru.objectsfill.types.primitive_type.PrimitiveDouble
All Implemented Interfaces:
BoxTypeFill, BoxCollectionFillExtension

public class PrimitiveDouble extends Object implements BoxTypeFill
Implementation of the BoxTypeFill interface for generating and filling primitive double values.
  • Constructor Details

    • PrimitiveDouble

      public PrimitiveDouble()
  • Method Details

    • generate

      public Object generate(Fill fill)
      Generates a random double value.
      Specified by:
      generate in interface BoxTypeFill
      Parameters:
      fill - the Fill object containing the configuration for generating values
      Returns:
      a random double value
    • fillStream

      public Stream<Object> fillStream(Fill fill)
      Creates a stream of double values using the generated value.
      Specified by:
      fillStream in interface BoxCollectionFillExtension
      Parameters:
      fill - the Fill object containing the configuration for generating values
      Returns:
      a stream of double values