- All Implemented Interfaces:
Iterator<Monomial<C>>
Iterator over monomials of a polynomial.
Adaptor for val.entrySet().iterator().
-
Field Summary
Fields
Internal iterator over polynomial map.
-
Constructor Summary
Constructors
Constructor of polynomial iterator.
-
Method Summary
boolean
Test for availability of a next monomial.
Get next monomial element.
void
Remove the last monomial returned from underlying set if allowed.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ms
Internal iterator over polynomial map.
-
Constructor Details
-
PolyIterator
Constructor of polynomial iterator.
- Parameters:
m
- SortetMap of a polynomial.
-
Method Details
-
hasNext
public boolean hasNext()
Test for availability of a next monomial.
- Specified by:
hasNext
in interface Iterator<C extends RingElem<C>>
- Returns:
- true if the iteration has more monomials, else false.
-
next
Get next monomial element.
- Specified by:
next
in interface Iterator<C extends RingElem<C>>
- Returns:
- next monomial.
-
remove
public void remove()
Remove the last monomial returned from underlying set if allowed.
- Specified by:
remove
in interface Iterator<C extends RingElem<C>>