Interface Multiplication<T>

    • Method Detail

      • multiply

        T multiply​(T a)
        Binary multiplication.
        Parameters:
        a - Element.
        Returns:
        this * a.
      • one

        T one()
        Identity element.
        Returns:
        the field element such that for all a, one().multiply(a).equals(a) is true.
      • reciprocal

        T reciprocal()
        Multiplicative inverse.
        Returns:
        this-1.
      • isOne

        default boolean isOne()
        Check if this is a neutral element of multiplication, i.e. this.multiply(a) returns a or an element representing the same value as a.

        The default implementation calls equals(one()). Implementations may want to employ more a efficient method. This may even be required if an implementation has multiple representations of one and its equals method differentiates between them.

        Returns:
        true if this is a neutral element of multiplication.
        Since:
        1.2
        See Also:
        one()