io.github.avivcarmis.confEager.properties.utils.ConfEagerPropertyPrimitive Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of conf-eager Show documentation
Show all versions of conf-eager Show documentation
Super simplistic and dynamic eager-initialization configuration library for Java.
The newest version!
package io.github.avivcarmis.confEager.properties.utils;
import io.github.avivcarmis.confEager.ConfEager;
import io.github.avivcarmis.confEager.ConfEagerProperty;
abstract public class ConfEagerPropertyPrimitive extends ConfEagerProperty {
private final ConfEagerValueMapper _mapper;
public ConfEagerPropertyPrimitive(ConfEager.DefaultValue defaultValue, ConfEager.PropertyName propertyName, ConfEagerValueMapper mapper) {
super(defaultValue, propertyName);
_mapper = mapper;
}
public ConfEagerPropertyPrimitive(ConfEager.PropertyName propertyName, ConfEager.DefaultValue defaultValue, ConfEagerValueMapper mapper) {
super(propertyName, defaultValue);
_mapper = mapper;
}
public ConfEagerPropertyPrimitive(ConfEager.PropertyName propertyName, ConfEagerValueMapper mapper) {
super(propertyName);
_mapper = mapper;
}
public ConfEagerPropertyPrimitive(ConfEager.DefaultValue defaultValue, ConfEagerValueMapper mapper) {
super(defaultValue);
_mapper = mapper;
}
public ConfEagerPropertyPrimitive(ConfEagerValueMapper mapper) {
_mapper = mapper;
}
@Override
protected T map(String value) {
return _mapper.map(value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy