Class DateFill

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

public class DateFill extends Object implements BoxTypeFill
The `DateFill` class implements the `BoxTypeFill` interface to generate `Date` values.
  • Constructor Details

    • DateFill

      public DateFill()
  • Method Details

    • generate

      public Object generate(Fill fill)
      Generates a random `Date` value.
      Specified by:
      generate in interface BoxTypeFill
      Parameters:
      fill - the `Fill` object containing the generation parameters
      Returns:
      the generated `Date` value
    • fillStream

      public Stream<Object> fillStream(Fill fill)
      Creates a stream of `Date` 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 `Date` values