Package edu.jas.poly
Class WordMonomial<C extends RingElem<C>>
- java.lang.Object
-
- edu.jas.poly.WordMonomial<C>
-
public final class WordMonomial<C extends RingElem<C>> extends java.lang.Object
WordMonomial class. Represents pairs of words and coefficients. Adaptor for Map.Entry.
-
-
Constructor Summary
Constructors Constructor Description WordMonomial(Word e, C c)
Constructor of word monomial.WordMonomial(java.util.Map.Entry<Word,C> me)
Constructor of word monomial.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description C
coefficient()
Getter for coefficient.java.lang.String
toString()
String representation of Monomial.Word
word()
Getter for word.
-
-
-
Method Detail
-
word
public Word word()
Getter for word.- Returns:
- word.
-
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()
-
-