Package edu.jas.poly

Class GenPolynomialMonomialIterator<C extends RingElem<C>>

  • All Implemented Interfaces:
    java.util.Iterator<GenPolynomial<C>>

    class GenPolynomialMonomialIterator<C extends RingElem<C>>
    extends java.lang.Object
    implements java.util.Iterator<GenPolynomial<C>>
    Polynomial monomial iterator.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()
      Test for availability of a next element.
      GenPolynomial<C> next()
      Get next polynomial.
      void remove()
      Remove an element if allowed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • GenPolynomialMonomialIterator

        public GenPolynomialMonomialIterator​(GenPolynomialRing<C> fac)
        Polynomial iterator constructor.
    • Method Detail

      • hasNext

        public boolean hasNext()
        Test for availability of a next element.
        Specified by:
        hasNext in interface java.util.Iterator<C extends RingElem<C>>
        Returns:
        true if the iteration has more elements, else false.
      • next

        public GenPolynomial<C> next()
        Get next polynomial.
        Specified by:
        next in interface java.util.Iterator<C extends RingElem<C>>
        Returns:
        next polynomial.
      • remove

        public void remove()
        Remove an element if allowed.
        Specified by:
        remove in interface java.util.Iterator<C extends RingElem<C>>