
kr.jm.metric.config.ConfigInterface Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jm-metric Show documentation
Show all versions of jm-metric Show documentation
FieldMap Transformer From Various Formatted Data
package kr.jm.metric.config;
import kr.jm.utils.helper.JMJson;
import java.util.Map;
public interface ConfigInterface {
default Map extractConfigMap() {
return JMJson.transformToMap(this);
}
default C transformConfig(
Class configClass) {
return transformConfig(extractConfigMap(), configClass);
}
static C transformConfig(
Map configMap, Class configClass) {
return JMJson.transform(configMap, configClass);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy