Package edu.jas.poly
Class IndexListMonomial<C extends RingElem<C>>
- java.lang.Object
-
- edu.jas.poly.IndexListMonomial<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
-
-
Constructor Summary
Constructors Constructor Description IndexListMonomial(IndexList e, C c)
Constructor of word monomial.IndexListMonomial(java.util.Map.Entry<IndexList,C> me)
Constructor of word 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.
-
-
-
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 classjava.lang.Object
- See Also:
Object.toString()
-
-