Class PowerNIterator

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.math.MathContext mathContext  
      private java.math.BigDecimal powerOfX  
      private java.math.BigDecimal x  
    • Constructor Summary

      Constructors 
      Constructor Description
      PowerNIterator​(java.math.BigDecimal x, java.math.MathContext mathContext)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void calculateNextPower()
      Calculates the next power.
      java.math.BigDecimal getCurrentPower()
      Returns the current power.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • x

        private final java.math.BigDecimal x
      • mathContext

        private final java.math.MathContext mathContext
      • powerOfX

        private java.math.BigDecimal powerOfX
    • Constructor Detail

      • PowerNIterator

        public PowerNIterator​(java.math.BigDecimal x,
                              java.math.MathContext mathContext)