com.bbn.bue.common.converters.StringToBoolean Maven / Gradle / Ivy
The newest version!
package com.bbn.bue.common.converters;
import static com.google.common.base.Preconditions.checkNotNull;
public class StringToBoolean implements StringConverter {
public StringToBoolean() {
}
public Class getValueClass() {
return Boolean.class;
}
public Boolean decode(final String s) {
return Boolean.parseBoolean(checkNotNull(s));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy