| Modifier and Type | Class and Description |
|---|---|
static class |
DateTimeGenerator.Companion |
Generator.DefaultImpls| Modifier and Type | Field and Description |
|---|---|
static DateTimeGenerator.Companion |
Companion |
| Constructor and Description |
|---|
DateTimeGenerator(java.lang.String format,
java.lang.String expression)
Generates a datetime value for the provided format. If no format is provided, ISO format is used. If an expression
is given, it will be evaluated to generate the datetime, otherwise 'now' will be used
|
DateTimeGenerator(java.lang.String format)
Generates a datetime value for the provided format. If no format is provided, ISO format is used. If an expression
is given, it will be evaluated to generate the datetime, otherwise 'now' will be used
|
DateTimeGenerator()
Generates a datetime value for the provided format. If no format is provided, ISO format is used. If an expression
is given, it will be evaluated to generate the datetime, otherwise 'now' will be used
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
component1() |
java.lang.String |
component2() |
DateTimeGenerator |
copy(java.lang.String format,
java.lang.String expression)
Generates a datetime value for the provided format. If no format is provided, ISO format is used. If an expression
is given, it will be evaluated to generate the datetime, otherwise 'now' 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 DateTimeGenerator.Companion Companion
public DateTimeGenerator(java.lang.String format,
java.lang.String expression)
Generates a datetime value for the provided format. If no format is provided, ISO format is used. If an expression is given, it will be evaluated to generate the datetime, otherwise 'now' will be used
public DateTimeGenerator(java.lang.String format)
Generates a datetime value for the provided format. If no format is provided, ISO format is used. If an expression is given, it will be evaluated to generate the datetime, otherwise 'now' will be used
public DateTimeGenerator()
Generates a datetime value for the provided format. If no format is provided, ISO format is used. If an expression is given, it will be evaluated to generate the datetime, otherwise 'now' 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 DateTimeGenerator copy(java.lang.String format, java.lang.String expression)
Generates a datetime value for the provided format. If no format is provided, ISO format is used. If an expression is given, it will be evaluated to generate the datetime, otherwise 'now' will be used
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)