Class BigIntegerCaster
java.lang.Object
ortus.boxlang.runtime.dynamic.casters.BigIntegerCaster
- All Implemented Interfaces:
IBoxCaster
I handle casting BigInteger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CastAttempt
<BigInteger> Tests to see if the value can be cast.static BigInteger
Used to cast anything, throwing exception if we failstatic BigInteger
Used to cast anything
-
Constructor Details
-
BigIntegerCaster
public BigIntegerCaster()
-
-
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
-
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
-