Class LocalDateType
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.LocalDateType
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionLocalDateType(String type, String fullTypeName, Class<?> clazz, JavaDtoSpec spec) LocalDateType(String type, String fullTypeName, Class<?> clazz, JavaDtoSpec spec, List<IntParam> dateFields) LocalDateType(JavaDtoSpec spec) -
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
-
INSTANCE_LOCALDATE_OF_EPOCHDAY
- See Also:
-
-
Constructor Details
-
LocalDateType
-
LocalDateType
-
LocalDateType
-
-
Method Details
-
copy
- Specified by:
copyin classTypeSchema
-
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
-
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
-
getDto
public org.evomaster.client.java.controller.api.dto.problem.rpc.TypeDto getDto()- Overrides:
getDtoin classTypeSchema
-