org.sfm.map.column.TimeZoneProperty Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simpleFlatMapper Show documentation
Show all versions of simpleFlatMapper Show documentation
Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.
package org.sfm.map.column;
import java.util.TimeZone;
public class TimeZoneProperty implements ColumnProperty {
private final TimeZone timeZone;
public TimeZoneProperty(TimeZone timeZone) {
if (timeZone == null) throw new NullPointerException();
this.timeZone = timeZone;
}
public TimeZone getTimeZone() {
return timeZone;
}
@Override
public String toString() {
return "TimeZone{"+ timeZone.getDisplayName() +
'}';
}
}