Class DateGenerator
java.lang.Object
org.instancio.internal.generator.AbstractGenerator<Date>
org.instancio.internal.generator.util.DateGenerator
- All Implemented Interfaces:
AsStringGeneratorSpec<Date>
,Generator<Date>
,GeneratorSpec<Date>
,TemporalGeneratorSpec<Date>
-
Field Summary
Fields inherited from interface org.instancio.generator.specs.TemporalGeneratorSpec
DEFAULT_MAX, DEFAULT_MIN, ZONE_OFFSET
-
Constructor Summary
-
Method Summary
Methods inherited from class org.instancio.internal.generator.AbstractGenerator
getContext, hints
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.instancio.generator.AsStringGeneratorSpec
asString, asString
-
Constructor Details
-
DateGenerator
-
-
Method Details
-
past
Description copied from interface:TemporalGeneratorSpec
Generate a temporal value in the past.- Specified by:
past
in interfaceTemporalGeneratorSpec<Date>
- Returns:
- spec builder
-
future
Description copied from interface:TemporalGeneratorSpec
Generate a temporal value in the future.- Specified by:
future
in interfaceTemporalGeneratorSpec<Date>
- Returns:
- spec builder
-
range
Description copied from interface:TemporalGeneratorSpec
Generate a temporal value between the given range.- Specified by:
range
in interfaceTemporalGeneratorSpec<Date>
- Parameters:
start
- start date (inclusive)end
- end date (inclusive)- Returns:
- spec builder
-
generate
Description copied from interface:Generator
Returns a generated value.If this method produces random data, the data needs to be generated using the provided
Random
instance. This ensures generated values are reproducible for a given seed value.
-