Class LocalDateConverter

All Implemented Interfaces:
ErpTypeConverter<LocalDate>, TypeConverter<LocalDate,String>

@Deprecated public class LocalDateConverter extends AbstractErpTypeConverter<LocalDate>
Deprecated.
This module will be discontinued, along with its classes and methods.
Type converter for LocalDate.
  • Field Details

    • INSTANCE

      public static final LocalDateConverter INSTANCE
      Deprecated.
      Statically created instance of this converter.
    • PATTERN_WITHOUT_DELIMITER

      public static final String PATTERN_WITHOUT_DELIMITER
      Deprecated.
      DateTimeFormat pattern suited for the date format 20181231
      See Also:
    • PATTERN_WITH_DASHES

      public static final String PATTERN_WITH_DASHES
      Deprecated.
      DateTimeFormat pattern suited for the date format 2018-12-31
      See Also:
  • Constructor Details

  • Method Details

    • getType

      @Nonnull public Class<LocalDate> getType()
      Deprecated.
      Description copied from interface: TypeConverter
      Getter for an class object of the type to convert from/to the domain-specific counterpart.
      Returns:
      The class object of T.
    • toDomainNonNull

      @Nonnull public ConvertedObject<String> toDomainNonNull(@Nonnull LocalDate object)
      Deprecated.
      Description copied from class: AbstractTypeConverter
      Actual converter implementation from an arbitrary object to its domain-specific counterpart.
      Specified by:
      toDomainNonNull in class AbstractTypeConverter<LocalDate,String>
      Parameters:
      object - The object to transform to its domain-specific counterpart.
      Returns:
      A wrapper containing the domain-specific counterpart.
    • fromDomainNonNull

      @Nonnull public ConvertedObject<LocalDate> fromDomainNonNull(@Nonnull String domainObject)
      Deprecated.
      Description copied from class: AbstractTypeConverter
      Actual converter implementation from a domain-specific object to an arbitrary type.
      Specified by:
      fromDomainNonNull in class AbstractTypeConverter<LocalDate,String>
      Parameters:
      domainObject - The domain-specific object to transform.
      Returns:
      A wrapper containing the converted object.