Class CharsetGenerator

All Implemented Interfaces:
Generator, TypedGenerator<Charset>

@API(status=STABLE, since="0.1") @Priority(-1000) public class CharsetGenerator extends AbstractTypedGenerator<Charset>
Generator of Charset values. By default generates only values that can encode. Use randomDecodeOnlyValue() for values without encoding support.
Since:
0.1
Version:
1.1, 2023-10
Author:
(w) Iker Hernaez
  • Constructor Details

    • CharsetGenerator

      public CharsetGenerator()
      Creates a new instance.
  • Method Details

    • defaultValue

      @NotNull public @NotNull Charset defaultValue()
      Returns the default value of the supported type.
      Returns:
      The default value.
    • randomValue

      @NotNull public @NotNull Charset randomValue()
      Returns a random value of the supported type.
      Returns:
      A random value.
    • randomDecodeOnlyValue

      @NotNull public @NotNull Charset randomDecodeOnlyValue()
      Generate a random Charset that does not support encoding.
      Returns:
      A random Charset that does not support encoding.