Class BooleanStringConverter
java.lang.Object
de.muehlencord.shared.configuration.converter.BooleanStringConverter
- All Implemented Interfaces:
StringConverter<Boolean>
- Author:
- Joern Muehlencord (joern@muehlencord.de)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BooleanStringConverter
public BooleanStringConverter()
-
-
Method Details
-
toString
Description copied from interface:StringConverterConverter a parameter object to a string representation- Specified by:
toStringin interfaceStringConverter<Boolean>- Parameters:
o- the parameter value to convert- Returns:
- the parameter value as string
- Throws:
ConverterException- if the conversion fails
-
fromString
Description copied from interface:StringConverterConverter a string to a the given type- Specified by:
fromStringin interfaceStringConverter<Boolean>- Parameters:
s- string representation of a parameter value to convert to an object- Returns:
- the parameter value as object
- Throws:
ConverterException- if the conversion fails
-