Package org.apfloat

Class ContinuedFractionHelper.ContinuedFractionIterator<T extends Apfloat>

  • All Implemented Interfaces:
    java.util.Iterator<Apint>
    Enclosing class:
    ContinuedFractionHelper

    private abstract static class ContinuedFractionHelper.ContinuedFractionIterator<T extends Apfloat>
    extends java.lang.Object
    implements java.util.Iterator<Apint>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private T f  
      private Apint i  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      protected abstract T inverse​(T x)  
      Apint next()  
      protected abstract T subtract​(T x, Apint y)  
      • 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, remove
    • Constructor Detail

      • ContinuedFractionIterator

        public ContinuedFractionIterator​(T x)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<T extends Apfloat>
      • next

        public Apint next()
        Specified by:
        next in interface java.util.Iterator<T extends Apfloat>
      • subtract

        protected abstract T subtract​(T x,
                                      Apint y)
      • inverse

        protected abstract T inverse​(T x)