Class PowerTwoNPlusOneIterator
java.lang.Object
io.github.syst3ms.skriptparser.util.math.PowerTwoNPlusOneIterator
- All Implemented Interfaces:
PowerIterator
PowerIterator to calculate x2*n+1.
I do not claim ownership of this code, it is the intellectual property of @obermuhlner.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalculates the next power.Returns the current power.
-
Constructor Details
-
PowerTwoNPlusOneIterator
-
-
Method Details
-
getCurrentPower
Description copied from interface:PowerIteratorReturns the current power.- Specified by:
getCurrentPowerin interfacePowerIterator- Returns:
- the current power.
-
calculateNextPower
public void calculateNextPower()Description copied from interface:PowerIteratorCalculates the next power.- Specified by:
calculateNextPowerin interfacePowerIterator
-