Class DoubleCheating

  • All Implemented Interfaces:
    Cheating<java.lang.Double>

    public class DoubleCheating
    extends java.lang.Object
    implements Cheating<java.lang.Double>
    The implementation of those special methods which are (still) necessary to convert field elements to doubles and vice versa. Anyhow, the implementation for doubles it is trivial and does not harm.
    • Constructor Summary

      Constructors 
      Constructor Description
      DoubleCheating()  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.Double fromDouble​(double value)
      Deprecated.
      the whole class should not be necessary in the future, if the base-conversions are based fully on field operations.
      double toDouble​(java.lang.Double value)
      Deprecated.
      the whole class should not be necessary in the future, if the base-conversions are based fully on field operations.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DoubleCheating

        public DoubleCheating()
    • Method Detail

      • fromDouble

        @Deprecated
        public java.lang.Double fromDouble​(double value)
        Deprecated.
        the whole class should not be necessary in the future, if the base-conversions are based fully on field operations.
        Converts a double value to a field element (double).
        Specified by:
        fromDouble in interface Cheating<java.lang.Double>
        Parameters:
        value - the double value from which to construct the field element.
        Returns:
        the field element constructed from the double value
      • toDouble

        @Deprecated
        public double toDouble​(java.lang.Double value)
        Deprecated.
        the whole class should not be necessary in the future, if the base-conversions are based fully on field operations.
        Converts field element (double) to a double value.
        Specified by:
        toDouble in interface Cheating<java.lang.Double>
        Parameters:
        value - field element to convert
        Returns:
        a double value related to the field