|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.bezier.math.combinatorics.CombinatoricsBase
public abstract class CombinatoricsBase
Base class for Combination, Variation, Permutation and CombinatoricsBaseSet
You normaly should not be using this class on it's own ...
Constructor Summary | |
---|---|
CombinatoricsBase()
|
|
CombinatoricsBase(int elements)
|
|
CombinatoricsBase(int elements,
int length)
|
Method Summary | |
---|---|
abstract boolean |
hasMore()
Check if there are more results available to be read. |
abstract int[] |
next()
Return next result and update internal counter. |
int[] |
nextAndStep(int step)
Return result and step foreward for given amount of steps (that is: skip results) |
int |
numberOfElements()
|
java.math.BigInteger |
position()
Return copy of the internal counter (number of results returned) as BigInteger |
int |
positionAsInt()
Try to return internal counter (number of results returned) as int |
long |
positionAsLong()
Try to return internal counter (number of results returned) as long |
float |
positionInPercent()
|
float |
positionInPercent(int precision)
|
abstract void |
rewind()
Rewind, start over, reset, recycle. |
java.math.BigInteger |
total()
Return total number of results as BigInteger (cloned) |
int |
totalAsInt()
Try to return total number of results as int |
long |
totalAsLong()
Try to return total number of results as long |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CombinatoricsBase()
public CombinatoricsBase(int elements)
public CombinatoricsBase(int elements, int length)
Method Detail |
---|
public int numberOfElements()
public float positionInPercent()
public float positionInPercent(int precision)
precision
- Round down to this precision (digits after the dot)
public int positionAsInt()
public long positionAsLong()
public java.math.BigInteger position()
BigInteger
public int totalAsInt()
BigInteger
public long totalAsLong()
BigInteger
public java.math.BigInteger total()
BigInteger
public abstract void rewind()
public abstract boolean hasMore()
public abstract int[] next()
public int[] nextAndStep(int step)
step
- How many steps to go forward after returning the result
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |