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