Class IntegerToBigIntegerDecorator

  • All Implemented Interfaces:
    FieldI, java.io.Serializable

    public class IntegerToBigIntegerDecorator
    extends FieldDecorator
    A FieldDecorator which converters Integer/Long/Short to BigIntegers on input, and optionally BigIntegers to Integers on output when there is no loss of precision.
    See Also:
    Serialized Form
    • Constructor Detail

      • IntegerToBigIntegerDecorator

        public IntegerToBigIntegerDecorator​(FieldI field)
      • IntegerToBigIntegerDecorator

        public IntegerToBigIntegerDecorator​(FieldI ring,
                                            boolean simplifyResults)
        If simplifyResults is true any BigInteger result which can be converted to a integer without loss of precision
        Parameters:
        ring - base ring
        simplifyResults - whether to try to convert real results back to Doubles.