Package edu.jas.poly

Class AlgebraicNumberIterator<C extends RingElem<C>>

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

    class AlgebraicNumberIterator<C extends RingElem<C>>
    extends java.lang.Object
    implements java.util.Iterator<AlgebraicNumber<C>>
    Algebraic number iterator.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) AlgebraicNumberRing<C> aring  
      (package private) java.util.Iterator<java.util.List<C>> iter
      data structure.
      private static org.apache.logging.log4j.Logger logger  
      (package private) java.util.List<GenPolynomial<C>> powers  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()
      Test for availability of a next tuple.
      AlgebraicNumber<C> next()
      Get next tuple.
      void remove()
      Remove a tuple 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

      • AlgebraicNumberIterator

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

      • hasNext

        public boolean hasNext()
        Test for availability of a next tuple.
        Specified by:
        hasNext in interface java.util.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 java.util.Iterator<C extends RingElem<C>>
        Returns:
        next tuple.
      • remove

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