| Modifier and Type | Class and Description |
|---|---|
static class |
DateGenerator.Companion |
Generator.DefaultImpls| Modifier and Type | Field and Description |
|---|---|
static DateGenerator.Companion |
Companion |
| Constructor and Description |
|---|
DateGenerator(java.lang.String format,
java.lang.String expression)
Generates a date value for the provided format. If no format is provided, ISO date format is used. If an expression
is given, it will be evaluated to generate the date, otherwise 'today' will be used
|
DateGenerator(java.lang.String format)
Generates a date value for the provided format. If no format is provided, ISO date format is used. If an expression
is given, it will be evaluated to generate the date, otherwise 'today' will be used
|
DateGenerator()
Generates a date value for the provided format. If no format is provided, ISO date format is used. If an expression
is given, it will be evaluated to generate the date, otherwise 'today' will be used
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
component1() |
java.lang.String |
component2() |
DateGenerator |
copy(java.lang.String format,
java.lang.String expression)
Generates a date value for the provided format. If no format is provided, ISO date format is used. If an expression
is given, it will be evaluated to generate the date, otherwise 'today' will be used
|
boolean |
equals(java.lang.Object p) |
java.lang.Object |
generate(java.util.Map<java.lang.String,? extends java.lang.Object> context) |
java.lang.String |
getExpression() |
java.lang.String |
getFormat() |
int |
hashCode() |
java.util.Map<java.lang.String,java.lang.Object> |
toMap(PactSpecVersion pactSpecVersion) |
java.lang.String |
toString() |
correspondsToMode, generate, toMappublic static DateGenerator.Companion Companion
public DateGenerator(java.lang.String format,
java.lang.String expression)
Generates a date value for the provided format. If no format is provided, ISO date format is used. If an expression is given, it will be evaluated to generate the date, otherwise 'today' will be used
public DateGenerator(java.lang.String format)
Generates a date value for the provided format. If no format is provided, ISO date format is used. If an expression is given, it will be evaluated to generate the date, otherwise 'today' will be used
public DateGenerator()
Generates a date value for the provided format. If no format is provided, ISO date format is used. If an expression is given, it will be evaluated to generate the date, otherwise 'today' will be used
public java.util.Map<java.lang.String,java.lang.Object> toMap(PactSpecVersion pactSpecVersion)
public java.lang.Object generate(java.util.Map<java.lang.String,? extends java.lang.Object> context)
public java.lang.String getFormat()
public java.lang.String getExpression()
public java.lang.String component1()
public java.lang.String component2()
public DateGenerator copy(java.lang.String format, java.lang.String expression)
Generates a date value for the provided format. If no format is provided, ISO date format is used. If an expression is given, it will be evaluated to generate the date, otherwise 'today' will be used
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)