public class UtilDateType extends DateType
  • Field Details

    • EMPLOY_SIMPLE_Format

      public final boolean EMPLOY_SIMPLE_Format
      represent the type employs SimpleDateFormat as [SIMPLE_DATE_FORMATTER]
  • Constructor Details

    • UtilDateType

      public UtilDateType(String type, String fullTypeName, Class<?> clazz, JavaDtoSpec spec, List<IntParam> dateFields, boolean simpleFormat)
    • 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 name
      fullTypeName - is the full type name
      clazz - is the class representing the type
      spec - is dto specification
      employSimpleFormat -
    • UtilDateType

      public UtilDateType(JavaDtoSpec spec, boolean employSimpleFormat)
    • UtilDateType

      public UtilDateType(JavaDtoSpec spec)
  • Method Details

    • getDateString

      public String getDateString(List<IntParam> values)
      Specified by:
      getDateString in class DateType
      Parameters:
      values - are a list of values for the date
      Returns:
      a string representing the date with the specified values
    • getDateInstance

      public Date getDateInstance(List<IntParam> values)
      Specified by:
      getDateInstance in class DateType
      Parameters:
      values - are a list of values for the date
      Returns:
      a date instance based on the values
    • getIntValues

      public List<IntParam> getIntValues(Object date)
      Description copied from class: DateType
      extract value of fields based on the date instance
      Specified by:
      getIntValues in class DateType
      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

      public long getDateLong(List<IntParam> values)
      Specified by:
      getDateLong in class DateType
      Returns:
      date with long format
    • getDto

      public org.evomaster.client.java.controller.api.dto.problem.rpc.TypeDto getDto()
      Overrides:
      getDto in class TypeSchema
    • copy

      public UtilDateType copy()
      Specified by:
      copy in class TypeSchema