Interface AsStringGeneratorSpec<T>

Type Parameters:
T - generated type
All Superinterfaces:
GeneratorSpec<T>
All Known Subinterfaces:
BigDecimalAsGeneratorSpec, BooleanAsGeneratorSpec, CharacterAsGeneratorSpec, EnumAsGeneratorSpec<E>, MonthDayGeneratorSpec, NumberAsGeneratorSpec<T>, PathAsGeneratorSpec<T>, TemporalAaStringGeneratorSpec<T>, URIAsGeneratorSpec, URLAsGeneratorSpec
All Known Implementing Classes:
AbstractRandomComparableNumberGeneratorSpec, AbstractRandomNumberGeneratorSpec, AtomicIntegerGenerator, AtomicLongGenerator, BigDecimalGenerator, BigIntegerGenerator, BooleanGenerator, ByteGenerator, CharacterGenerator, DoubleGenerator, EnumGenerator, FileGenerator, FloatGenerator, InstantGenerator, IntegerGenerator, LocalDateGenerator, LocalDateTimeGenerator, LocalTimeGenerator, LongGenerator, MonthDayGenerator, OffsetDateTimeGenerator, OffsetTimeGenerator, PathGenerator, ShortGenerator, URIGenerator, URLGenerator, YearGenerator, YearMonthGenerator, ZonedDateTimeGenerator

@Deprecated public interface AsStringGeneratorSpec<T> extends GeneratorSpec<T>
Deprecated.
use AsGeneratorSpec instead. This class will be removed in version 3.0.0.
A spec for generators that can produce their values as strings.
Since:
2.0.0
  • Method Details

    • asString

      @Deprecated default GeneratorSpec<String> asString(Function<T,String> toStringFunction)
      Deprecated.
      use AsGeneratorSpec.as(Function) method. This method will be removed in version 3.0.0
      Returns the generated value as a String using the specified function.
      Parameters:
      toStringFunction - function for converting the result to a string
      Returns:
      result as a string using the specified function for conversion
      Since:
      2.0.0