Class UtilDateType
java.lang.Object
org.evomaster.client.java.controller.problem.rpc.schema.types.TypeSchema
org.evomaster.client.java.controller.problem.rpc.schema.types.DateType
org.evomaster.client.java.controller.problem.rpc.schema.types.UtilDateType
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanrepresent the type employs SimpleDateFormat as [SIMPLE_DATE_FORMATTER]Fields inherited from class org.evomaster.client.java.controller.problem.rpc.schema.types.DateType
DATE_FORMATTER, day, hour, millisecond, minute, month, second, SIMPLE_DATE_FORMATTER, timezone, yearFields inherited from class org.evomaster.client.java.controller.problem.rpc.schema.types.TypeSchema
depth, spec -
Constructor Summary
ConstructorsConstructorDescriptionUtilDateType(String type, String fullTypeName, Class<?> clazz, boolean simpleFormat, JavaDtoSpec spec) UtilDateType(String type, String fullTypeName, Class<?> clazz, JavaDtoSpec spec, boolean employSimpleFormat) DateType with simpleFormatUtilDateType(String type, String fullTypeName, Class<?> clazz, JavaDtoSpec spec, List<IntParam> dateFields, boolean simpleFormat) UtilDateType(JavaDtoSpec spec) UtilDateType(JavaDtoSpec spec, boolean employSimpleFormat) -
Method Summary
Modifier and TypeMethodDescriptioncopy()getDateInstance(List<IntParam> values) longgetDateLong(List<IntParam> values) getDateString(List<IntParam> values) org.evomaster.client.java.controller.api.dto.problem.rpc.TypeDtogetDto()getIntValues(Object date) extract value of fields based on the date instanceMethods inherited from class org.evomaster.client.java.controller.problem.rpc.schema.types.DateType
formatZZZZ, getDateFields, setDateFieldsMethods inherited from class org.evomaster.client.java.controller.problem.rpc.schema.types.TypeSchema
getClazz, getFullTypeName, getFullTypeNameWithGenericType, getSimpleTypeName, getTypeNameForInstanceInJavaOrKotlin, sameType, setOriginalType
-
Field Details
-
EMPLOY_SIMPLE_Format
public final boolean EMPLOY_SIMPLE_Formatrepresent the type employs SimpleDateFormat as [SIMPLE_DATE_FORMATTER]
-
-
Constructor Details
-
UtilDateType
-
UtilDateType
public UtilDateType(String type, String fullTypeName, Class<?> clazz, boolean simpleFormat, JavaDtoSpec spec) -
UtilDateType
public UtilDateType(String type, String fullTypeName, Class<?> clazz, JavaDtoSpec spec, boolean employSimpleFormat) DateType with simpleFormat- Parameters:
type- is the type namefullTypeName- is the full type nameclazz- is the class representing the typespec- is dto specificationemploySimpleFormat-
-
UtilDateType
-
UtilDateType
-
-
Method Details
-
getDateString
- Specified by:
getDateStringin classDateType- Parameters:
values- are a list of values for the date- Returns:
- a string representing the date with the specified values
-
getDateInstance
- Specified by:
getDateInstancein classDateType- Parameters:
values- are a list of values for the date- Returns:
- a date instance based on the values
-
getIntValues
Description copied from class:DateTypeextract value of fields based on the date instance- Specified by:
getIntValuesin classDateType- Parameters:
date- is an instance of Date, eg, java.util.Date or java.time.LocalDate- Returns:
- a list of fields which contains specific values
-
getDateLong
- Specified by:
getDateLongin classDateType- Returns:
- date with long format
-
getDto
public org.evomaster.client.java.controller.api.dto.problem.rpc.TypeDto getDto()- Overrides:
getDtoin classTypeSchema
-
copy
- Specified by:
copyin classTypeSchema
-