Package edu.jas.poly
Class Monomial<C extends RingElem<C>>
- java.lang.Object
-
- edu.jas.poly.Monomial<C>
-
- All Implemented Interfaces:
Element<Monomial<C>>,java.io.Serializable,java.lang.Comparable<Monomial<C>>
public final class Monomial<C extends RingElem<C>> extends java.lang.Object implements Element<Monomial<C>>
Monomial class. Represents pairs of exponent vectors and coefficients. Adaptor for Map.Entry.- Author:
- Heinz Kredel
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Ccoefficient()Getter for coefficient.intcompareTo(Monomial<C> S)Monomial comparison.Monomial<C>copy()Clone this Element.booleanequals(java.lang.Object B)Comparison with any other object.ExpVectorexponent()Getter for exponent.ElemFactory<Monomial<C>>factory()Get the corresponding element factory.inthashCode()hashCode.java.lang.StringtoScript()Script representation of Monomial.java.lang.StringtoScriptFactory()Get a scripting compatible string representation of the factory.java.lang.StringtoString()String representation of Monomial.
-
-
-
Method Detail
-
coefficient
public C coefficient()
Getter for coefficient.- Returns:
- coefficient.
-
toString
public java.lang.String toString()
String representation of Monomial.- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
toScript
public java.lang.String toScript()
Script representation of Monomial.
-
toScriptFactory
public java.lang.String toScriptFactory()
Get a scripting compatible string representation of the factory.- Specified by:
toScriptFactoryin interfaceElement<C extends RingElem<C>>- Returns:
- script compatible representation for this ElemFactory.
- See Also:
Element.toScriptFactory()
-
factory
public ElemFactory<Monomial<C>> factory()
Get the corresponding element factory.
-
equals
public boolean equals(java.lang.Object B)
Comparison with any other object.
-
hashCode
public int hashCode()
hashCode.
-
-