Class AbstractPoly
java.lang.Object
it.unimi.di.prog2.h18.AbstractPoly
- Direct Known Subclasses:
DensePoly, SparsePoly
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractPoly(int degree) Initializes this to be the a polynomial with given degree. -
Method Summary
Methods inherited from interface Iterable
forEach, iterator, spliterator
-
Field Details
-
degree
private final int degreeThe degree of the polynomial.
-
-
Constructor Details
-
AbstractPoly
protected AbstractPoly(int degree) Initializes this to be the a polynomial with given degree.- Parameters:
degree- the degree.- Throws:
IllegalArgumentException- ifnis not positive.
-
-
Method Details
-
isZero
-
degree
-
equals
-
hashCode
-
toString
-