| PokerSource Java API | |
| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.pokersource.util.NestedLoopEnumerationpublic class NestedLoopEnumerationextends java.lang.Objectimplements Enumeration
{0, 0, 0}
{0, 0, 1}
{0, 1, 0}
{0, 1, 1}
{0, 2, 0}
{0, 2, 1}
{1, 0, 0}
{1, 0, 1}
{1, 1, 0}
{1, 1, 1}
{1, 2, 0}
{1, 2, 1}
Constructor Summary | |
| |
Method Summary | |
boolean | |
Object |
|
public NestedLoopEnumeration(int[] limits)
Initializes a nested loop iterator with limits.length dimensions.
- Parameters:
limits- limits[i] is the upper limit of the ith nested loop (the loop runs from 0 to limits[i]-1 inclusive)
public boolean hasMoreElements()
public Object nextElement()
Return an integer array listing the next loop indices for each dimension.
- Returns:
- An object of int[] type; the ith value is the loop variable for the ith nested loop.