Package org.instancio.generator
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.
A spec for generators that can produce their values as strings.
- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault GeneratorSpec<String>Deprecated.useAsGeneratorSpec.as(Function)method.
-
Method Details
-
asString
Deprecated.useAsGeneratorSpec.as(Function)method. This method will be removed in version3.0.0Returns the generated value as aStringusing 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
-
AsGeneratorSpecinstead. This class will be removed in version3.0.0.