Package edu.jas.poly

Class IndexListMonomial<C extends RingElem<C>>


  • public final class IndexListMonomial<C extends RingElem<C>>
    extends java.lang.Object
    IndexListMonomial class. Represents pairs of index lists and coefficients. Adaptor for Map.Entry.
    Author:
    Heinz Kredel
    • Field Summary

      Fields 
      Modifier and Type Field Description
      C c
      Coefficient of monomial.
      IndexList e
      IndexList of monomial.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      C coefficient()
      Getter for coefficient.
      IndexList indexlist()
      Getter for index list.
      java.lang.String toString()
      String representation of Monomial.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • e

        public final IndexList e
        IndexList of monomial.
      • c

        public final C extends RingElem<C> c
        Coefficient of monomial.
    • Constructor Detail

      • IndexListMonomial

        public IndexListMonomial​(java.util.Map.Entry<IndexList,​C> me)
        Constructor of word monomial.
        Parameters:
        me - a MapEntry.
      • IndexListMonomial

        public IndexListMonomial​(IndexList e,
                                 C c)
        Constructor of word monomial.
        Parameters:
        e - index list.
        c - coefficient.
    • Method Detail

      • coefficient

        public C coefficient()
        Getter for coefficient.
        Returns:
        coefficient.
      • toString

        public java.lang.String toString()
        String representation of Monomial.
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()