
org.simpleflatmapper.reflect.getter.NullGetter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sfm-reflect Show documentation
Show all versions of sfm-reflect Show documentation
Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.
The newest version!
package org.simpleflatmapper.reflect.getter;
import org.simpleflatmapper.reflect.Getter;
public class NullGetter implements Getter {
private static final NullGetter NULL_GETTER = new NullGetter();
private NullGetter() {
}
@Override
public String toString() {
return "NullGetter{}";
}
@Override
public P get(T target) {
return null;
}
@SuppressWarnings("unchecked")
public static Getter getter() {
return NULL_GETTER;
}
public static boolean isNull(Getter, ?> getter) {
return getter == null || getter == NULL_GETTER;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy