Package edu.jas.poly
Class WordPolyIterator<C extends RingElem<C>>
- java.lang.Object
-
- edu.jas.poly.WordPolyIterator<C>
-
- All Implemented Interfaces:
java.util.Iterator<WordMonomial<C>>
public class WordPolyIterator<C extends RingElem<C>> extends java.lang.Object implements java.util.Iterator<WordMonomial<C>>
Iterator over monomials of a polynomial. Adaptor for val.entrySet().iterator().- Author:
- Heinz Kredel
-
-
Constructor Summary
Constructors Constructor Description WordPolyIterator(java.util.SortedMap<Word,C> m)
Constructor of polynomial iterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Test for availability of a next monomial.WordMonomial<C>
next()
Get next monomial element.void
remove()
Remove the last monomial returned from underlying set if allowed.
-
-
-
Constructor Detail
-
WordPolyIterator
public WordPolyIterator(java.util.SortedMap<Word,C> m)
Constructor of polynomial iterator.- Parameters:
m
- SortetMap of a polynomial.
-
-
Method Detail
-
hasNext
public boolean hasNext()
Test for availability of a next monomial.
-
next
public WordMonomial<C> next()
Get next monomial element.
-
-