Package edu.jas.poly

Class AlgebraicNumberIterator<C extends RingElem<C>>

java.lang.Object
edu.jas.poly.AlgebraicNumberIterator<C>
All Implemented Interfaces:
Iterator<AlgebraicNumber<C>>

class AlgebraicNumberIterator<C extends RingElem<C>> extends Object implements Iterator<AlgebraicNumber<C>>
Algebraic number iterator.
  • Field Details

  • Constructor Details

    • AlgebraicNumberIterator

      public AlgebraicNumberIterator(AlgebraicNumberRing<C> aring)
      CartesianProduct iterator constructor.
      Parameters:
      aring - AlgebraicNumberRing components of the Cartesian product.
  • Method Details

    • hasNext

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

      public AlgebraicNumber<C> next()
      Get next tuple.
      Specified by:
      next in interface Iterator<C extends RingElem<C>>
      Returns:
      next tuple.
    • remove

      public void remove()
      Remove a tuple if allowed.
      Specified by:
      remove in interface Iterator<C extends RingElem<C>>