org.mentalog.config.BooleanConfigParam Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of menta-log Show documentation
Show all versions of menta-log Show documentation
A log library that embraces the kiss principle.
package org.mentalog.config;
public class BooleanConfigParam extends ConfigParam {
public BooleanConfigParam(String name, Boolean defValue) {
super(name, defValue);
}
public final boolean isForcedTrue() {
return isForced() && bool();
}
public final boolean isForcedFalse() {
return isForced() && !bool();
}
public final boolean bool() {
return value();
}
@Override
protected Boolean parseString(String s) {
return Boolean.parseBoolean(s);
}
}