Class ShortGenerator

All Implemented Interfaces:
Generator, TypedGenerator<Short>

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

    • DEFAULT_VALUE

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

    • ShortGenerator

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

    • defaultValue

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

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

      public static short randomShort()
      Generates a random short between Short.MIN_VALUE and Short.MAX_VALUE both included.
      Returns:
      A random short value