org.simpleflatmapper.map.property.DefaultValueProperty 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.ConstantSupplier;
import org.simpleflatmapper.util.Supplier;
public class DefaultValueProperty {
private final Supplier value;
public DefaultValueProperty(T value) {
this(new ConstantSupplier(value));
}
public DefaultValueProperty(Supplier supplier) {
this.value = supplier;
}
public T getValue() {
return value.get();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy