Class BooleanTransformer
java.lang.Object
de.craftsblock.craftsnet.api.transformers.builtin.BooleanTransformer
- All Implemented Interfaces:
Transformable<Boolean,String>
A transformer class for converting a string representation of a boolean value to a Boolean object.
Implements the
Transformable interface.- Since:
- 3.0.2-SNAPSHOT
- See Also:
-
Constructor Details
-
BooleanTransformer
public BooleanTransformer()
-
-
Method Details
-
transform
Transforms the provided string parameter into a Boolean object.- Specified by:
transformin interfaceTransformable<Boolean,String> - Parameters:
parameter- The string representation of the boolean value.- Returns:
- The Boolean object representing the transformed value.
- Throws:
NotTransformableException- If the parameter cannot be transformed to a Boolean.
-