public class DateTimeGeneratedValueProvider extends BaseParrotProvider
BaseParrotProvider.ParrotProviderResult
Modifier and Type | Field and Description |
---|---|
static String[] |
GENERATION_MODE_LIST |
counter, repeatValues, repetition
Constructor and Description |
---|
DateTimeGeneratedValueProvider(DateTimeProperties properties) |
Modifier and Type | Method and Description |
---|---|
static long |
convertDateToMillis(Calendar date) |
static Calendar |
convertFromMillis(long millis) |
static GeneratorDescriptor |
getDefaultDescriptor() |
String |
getNewValue()
Call this when you want to force creation of absolutely new value (doesn't take into account provider settings
like repeat count)
|
protected String |
getNewValueInternal() |
String |
getValue()
Call this when you want to get random value which takes into consideration all provider settings
|
static Calendar |
initializeDateTime(int year,
int month,
int day,
int hour,
int min,
int second) |
tweetNextValue
getIterationCount, getRepeatValues, setIterationCount, setRepeatValues
public static final String[] GENERATION_MODE_LIST
public DateTimeGeneratedValueProvider(DateTimeProperties properties)
public static GeneratorDescriptor getDefaultDescriptor()
public static long convertDateToMillis(Calendar date)
public static Calendar convertFromMillis(long millis)
public static Calendar initializeDateTime(int year, int month, int day, int hour, int min, int second)
public String getValue()
GeneratedDataValue
getValue
in interface GeneratedDataValue
getValue
in class BaseParrotProvider
protected String getNewValueInternal()
getNewValueInternal
in class BaseParrotProvider
public String getNewValue()
GeneratedDataValue
getNewValue
in interface GeneratedDataValue
getNewValue
in class BaseParrotProvider
Copyright © 2019. All rights reserved.