Class DoubleFill

java.lang.Object
ru.objectsfill.types.box_type.DoubleFill
All Implemented Interfaces:
BoxTypeFill, BoxCollectionFillExtension

public class DoubleFill extends Object implements BoxTypeFill
Class for generating a value of the double type
  • Constructor Details

    • DoubleFill

      public DoubleFill()
  • 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 generation parameters
      Returns:
      the generated `double` value
    • fillStream

      public Stream<Object> fillStream(Fill fill)
      Creates a stream of `double` values based on the provided `Fill` object.
      Specified by:
      fillStream in interface BoxCollectionFillExtension
      Parameters:
      fill - the `Fill` object containing the generation parameters
      Returns:
      a stream of `double` values