org.simpleflatmapper.map.property.DateFormatProperty Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sfm-map Show documentation
Show all versions of sfm-map Show documentation
Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.
package org.simpleflatmapper.map.property;
import org.simpleflatmapper.util.date.DateFormatSupplier;
import static org.simpleflatmapper.util.Asserts.requireNonNull;
public class DateFormatProperty implements DateFormatSupplier {
private final String pattern;
public DateFormatProperty(String pattern) {
this.pattern = requireNonNull("pattern", pattern);
}
public String get() {
return pattern;
}
@Override
public String toString() {
return "DateFormat{'" + pattern + "'}";
}
}