Package edu.jas.gb

Class SigPair<C extends RingElem<C>>

java.lang.Object
edu.jas.gb.SigPair<C>
Type Parameters:
C - coefficient type
All Implemented Interfaces:
Comparable<SigPair<C>>

public class SigPair<C extends RingElem<C>> extends Object implements Comparable<SigPair<C>>
Serializable subclass to hold pairs of polynomials.
  • Field Details

  • Constructor Details

  • Method Details

    • getSigma

      GenPolynomial<C> getSigma()
      getter for sigma
    • getSigmaDegree

      long getSigmaDegree()
      getter for sigma.degree
    • toString

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

      public boolean equals(Object ob)
      equals.
      Overrides:
      equals in class 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 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 Object
      See Also: