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

org.simpleflatmapper.map.property.DefaultDateFormatProperty Maven / Gradle / Ivy

Go to download

Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.

There is a newer version: 9.0.2
Show newest version
package org.simpleflatmapper.map.property;

import org.simpleflatmapper.util.date.DefaultDateFormatSupplier;

import static org.simpleflatmapper.util.Asserts.requireNonNull;

public class DefaultDateFormatProperty implements DefaultDateFormatSupplier {

    private final String pattern;

    public DefaultDateFormatProperty(String pattern) {
        this.pattern = requireNonNull("pattern", pattern);
    }

    public String get() {
        return pattern;
    }

    @Override
    public String toString() {
        return "DefaultDateFormat{'" + pattern + "'}";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy