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