Class BigIntegerCaster

java.lang.Object
ortus.boxlang.runtime.dynamic.casters.BigIntegerCaster
All Implemented Interfaces:
IBoxCaster

public class BigIntegerCaster extends Object implements IBoxCaster
I handle casting BigInteger
  • Constructor Details

    • BigIntegerCaster

      public BigIntegerCaster()
  • Method Details

    • attempt

      public static CastAttempt<BigInteger> attempt(Object object)
      Tests to see if the value can be cast. Returns a CastAttempt<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

      public static BigInteger cast(Object object)
      Used to cast anything, throwing exception if we fail
      Parameters:
      object - The value to cast
      Returns:
      The value
    • cast

      public static BigInteger cast(Object object, Boolean fail)
      Used to cast anything
      Parameters:
      object - The value to cast
      fail - True to throw exception when failing.
      Returns:
      The value, or null when cannot be cast