Class PrimitiveChar

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

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

    • PrimitiveChar

      public PrimitiveChar()
  • Method Details

    • generate

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

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