Class ByteGenerator

All Implemented Interfaces:
Generator, TypedGenerator<Byte>

@API(status=STABLE, since="0.1") @Priority(-1000) public class ByteGenerator extends AbstractPrimitiveGenerator<Byte>
Generator of byte and Byte values.
Since:
0.1
Version:
1.0, 2022-10
Author:
(w) Iker Hernaez
  • Field Details

    • DEFAULT_VALUE

      public static final byte DEFAULT_VALUE
      The default value.
      See Also:
  • Constructor Details

    • ByteGenerator

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

    • defaultValue

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

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

      public static byte randomByte()
      Generates a random byte between Byte.MIN_VALUE and Byte.MAX_VALUE both included.
      Returns:
      A random byte value