| Modifier and Type | Class and Description |
|---|---|
static class |
DateTimeGenerator.Companion |
| Modifier and Type | Field and Description |
|---|---|
static DateTimeGenerator.Companion |
Companion |
| Constructor and Description |
|---|
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() |
DateTimeGenerator |
copy(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
|
boolean |
equals(java.lang.Object p) |
java.lang.Object |
generate(java.lang.Object base) |
java.lang.String |
getFormat() |
int |
hashCode() |
java.util.Map<java.lang.String,java.lang.Object> |
toMap(PactSpecVersion pactSpecVersion) |
java.lang.String |
toString() |
public static DateTimeGenerator.Companion Companion
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.lang.Object base)
public java.lang.String getFormat()
public java.lang.String component1()
public DateTimeGenerator copy(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 java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)