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 C
coefficient()
Getter for coefficient.int
compareTo(Monomial<C> S)
Monomial comparison.Monomial<C>
copy()
Clone this Element.boolean
equals(java.lang.Object B)
Comparison with any other object.ExpVector
exponent()
Getter for exponent.ElemFactory<Monomial<C>>
factory()
Get the corresponding element factory.int
hashCode()
hashCode.java.lang.String
toScript()
Script representation of Monomial.java.lang.String
toScriptFactory()
Get a scripting compatible string representation of the factory.java.lang.String
toString()
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:
toString
in 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:
toScriptFactory
in 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.
-
-