Package edu.jas.gb

Class SigPair<C extends RingElem<C>>

  • Type Parameters:
    C - coefficient type
    All Implemented Interfaces:
    java.lang.Comparable<SigPair<C>>

    public class SigPair<C extends RingElem<C>>
    extends java.lang.Object
    implements java.lang.Comparable<SigPair<C>>
    Serializable subclass to hold pairs of polynomials.
    Author:
    Heinz Kredel
    • Method Detail

      • toString

        public java.lang.String toString()
        toString.
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object ob)
        equals.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        ob - an Object.
        Returns:
        true if this is equal to o, else false.
      • compareTo

        public int compareTo​(SigPair<C> p)
        compareTo used in TreeMap // not used at moment. Comparison is based on the number of the pairs.
        Specified by:
        compareTo in interface java.lang.Comparable<C extends RingElem<C>>
        Parameters:
        p - a SigPair.
        Returns:
        1 if (this < o), 0 if (this == o), -1 if (this > o).
      • hashCode

        public int hashCode()
        Hash code for this SigPair.
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()