All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.modelmapper.module.jsr310.Jsr310ModuleConfig Maven / Gradle / Ivy

There is a newer version: 1.2.1
Show newest version
package org.modelmapper.module.jsr310;

import java.time.ZoneId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Config for {@link Jsr310Module}
 *
 * @author Chun Han Hsiao
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Jsr310ModuleConfig {
  private static final String DEFAULT_DATE_PATTERN = "yyyy-MM-dd";
  private static final String DEFAULT_DATE_TIME_PATTERN = "yyyy-MM-dd HH:mm:ss";
  private static final String DEFAULT_TIME_PATTERN = "HH:mm:ss";

  @Builder.Default
  private String datePattern = DEFAULT_DATE_PATTERN;
  @Builder.Default
  private String dateTimePattern = DEFAULT_DATE_TIME_PATTERN;
  @Builder.Default
  private String timePattern = DEFAULT_TIME_PATTERN;
  @Builder.Default
  private ZoneId zoneId = ZoneId.systemDefault();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy