Package dev.orne.i18n

Class I18nStringMapGenerator

java.lang.Object
dev.orne.test.rnd.AbstractGenerator
dev.orne.test.rnd.params.AbstractParameterizableGenerator<P>
dev.orne.test.rnd.params.AbstractTypedParameterizableGenerator<I18nStringMap,dev.orne.test.rnd.params.StringGenerationParameters>
dev.orne.i18n.I18nStringMapGenerator
All Implemented Interfaces:
dev.orne.test.rnd.Generator, dev.orne.test.rnd.params.ParameterizableGenerator, dev.orne.test.rnd.params.TypedParameterizableGenerator<I18nStringMap>, dev.orne.test.rnd.TypedGenerator<I18nStringMap>

@API(status=INTERNAL, since="0.1") @Priority(-1000) public class I18nStringMapGenerator extends dev.orne.test.rnd.params.AbstractTypedParameterizableGenerator<I18nStringMap,dev.orne.test.rnd.params.StringGenerationParameters>
Generator of I18nStringMap values.
Since:
0.1
Version:
1.0, 2023-10
Author:
(w) Iker Hernaez
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final int
    The maximum random translations.
    protected static final int
    The minimum random translations.

    Fields inherited from class dev.orne.test.rnd.AbstractGenerator

    DEFAULT_NULL_PROBABILITY
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull I18nStringMap
    defaultValue(@NotNull dev.orne.test.rnd.params.StringGenerationParameters parameters)
    @NotNull I18nStringMap
    randomValue(@NotNull dev.orne.test.rnd.params.StringGenerationParameters parameters)

    Methods inherited from class dev.orne.test.rnd.params.AbstractTypedParameterizableGenerator

    defaultValue, defaultValue, defaultValue, equals, getValueType, hashCode, nullableDefaultValue, nullableDefaultValue, nullableDefaultValue, nullableRandomValue, nullableRandomValue, nullableRandomValue, randomValue, randomValue, randomValue, supports

    Methods inherited from class dev.orne.test.rnd.params.AbstractParameterizableGenerator

    createEmptyParams, createParams, defaultValue, defaultValue, getExtractor, getParametersType, nullableDefaultValue, nullableDefaultValue, nullableDefaultValue, nullableRandomValue, nullableRandomValue, nullableRandomValue, randomValue, randomValue

    Methods inherited from class dev.orne.test.rnd.AbstractGenerator

    assertSupported, getNullProbability, randomNull, setNullProbability, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface dev.orne.test.rnd.Generator

    asParameterizable, defaultValue, getPriority, nullableDefaultValue, nullableRandomValue, randomValue

    Methods inherited from interface dev.orne.test.rnd.params.ParameterizableGenerator

    defaultValue, nullableDefaultValue, nullableRandomValue, randomValue
  • Field Details

    • MIN_TRANSLATIONS

      protected static final int MIN_TRANSLATIONS
      The minimum random translations.
      See Also:
    • MAX_TRANSLATIONS

      protected static final int MAX_TRANSLATIONS
      The maximum random translations.
      See Also:
  • Constructor Details

    • I18nStringMapGenerator

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

    • defaultValue

      @NotNull public @NotNull I18nStringMap defaultValue(@NotNull @NotNull dev.orne.test.rnd.params.StringGenerationParameters parameters)
      Specified by:
      defaultValue in class dev.orne.test.rnd.params.AbstractTypedParameterizableGenerator<I18nStringMap,dev.orne.test.rnd.params.StringGenerationParameters>
    • randomValue

      @NotNull public @NotNull I18nStringMap randomValue(@NotNull @NotNull dev.orne.test.rnd.params.StringGenerationParameters parameters)
      Specified by:
      randomValue in class dev.orne.test.rnd.params.AbstractTypedParameterizableGenerator<I18nStringMap,dev.orne.test.rnd.params.StringGenerationParameters>