Class LongCaster
java.lang.Object
ortus.boxlang.runtime.dynamic.casters.LongCaster
- All Implemented Interfaces:
IBoxCaster
I handle casting anything
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CastAttempt<Long> Tests to see if the value can be cast.static CastAttempt<Long> Tests to see if the value can be cast.static LongUsed to cast anythingstatic LongUsed to cast anything, throwing exception if we failstatic LongUsed to cast anything, throwing exception if we fail
-
Constructor Details
-
LongCaster
public LongCaster()
-
-
Method Details
-
attempt
Tests to see if the value can be cast. Returns aCastAttempt<T>which will contain the result if casting was was successfull, or can be interogated to proceed otherwise.- Parameters:
object- The value to cast- Returns:
- The value
-
attempt
Tests to see if the value can be cast. Returns aCastAttempt<T>which will contain the result if casting was was successfull, or can be interogated to proceed otherwise.- Parameters:
object- The value to cast- Returns:
- The value
-
cast
Used to cast anything, throwing exception if we fail- Parameters:
object- The value to cast- Returns:
- The value
-
cast
Used to cast anything, throwing exception if we fail- Parameters:
object- The value to cast- Returns:
- The value
-
cast
Used to cast anything- Parameters:
object- The value to castfail- True to throw exception when failing.- Returns:
- The value, or null when cannot be cast
-