|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpoker.util.NChoose2IntTable
public class NChoose2IntTable
Keeps an NChoose2 table of integers.
Constructor Summary | |
---|---|
NChoose2IntTable(int n)
|
Method Summary | |
---|---|
int |
get(int x,
int y)
Obtain the value linking elements x and y |
int |
getValue(int index)
Get the value at the given index. |
int[] |
getValues()
|
void |
initTable(int val)
initialize all entries in the table to val. |
int |
length()
The total number of entries in the table. |
void |
set(int x,
int y,
int val)
Set the value linking elements x and y |
void |
setValue(int index,
int val)
set the value at index to value |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NChoose2IntTable(int n)
Method Detail |
---|
public void initTable(int val)
public final int getValue(int index)
public void setValue(int index, int val)
public final int length()
public final int get(int x, int y)
x
- the first elementy
- the second element
public final void set(int x, int y, int val)
x
- the first elementy
- the second elementval
- the value of x,ypublic int[] getValues()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |