|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.physics.fluids.dynamics.util.Vector2DFastInt
public class Vector2DFastInt
DOCUMENT ME!
| Constructor Summary | |
|---|---|
Vector2DFastInt(int imax,
int jtam,
int incr)
constructor |
|
| Method Summary | |
|---|---|
void |
addElement(int i,
int valor)
add an element. |
void |
addElementNoRep(int i,
int valor)
add an element only if not contained yet. |
int[] |
array()
returns the data contained in the container as an array of int's. |
int |
elementAt(int i,
int j)
returns the element at the given position |
int |
getStartOfRow(int i)
returns the initial position in array() of the row i. |
boolean |
isElement(int i,
int valor)
returns true if the element is contained in the
row. |
void |
reset()
Empty the vector quickly, but keeping the memory RAM. |
int |
size(int i)
returns the length of the row i. |
void |
sortArrayRows(int type)
Sorts all elements of all rows. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Vector2DFastInt(int imax,
int jtam,
int incr)
imax - DOCUMENT ME!jtam - DOCUMENT ME!incr - DOCUMENT ME!| Method Detail |
|---|
public void addElement(int i,
int valor)
i - DOCUMENT ME!valor - DOCUMENT ME!
public void addElementNoRep(int i,
int valor)
i - DOCUMENT ME!valor - DOCUMENT ME!public int[] array()
public int elementAt(int i,
int j)
i - DOCUMENT ME!j - DOCUMENT ME!
public int getStartOfRow(int i)
i - DOCUMENT ME!
public void sortArrayRows(int type)
type - 1 for going from lower to bigger, -1 for going from bigger
to lower.
public boolean isElement(int i,
int valor)
true if the element is contained in the
row.
i - DOCUMENT ME!valor - DOCUMENT ME!
public void reset()
public int size(int i)
i - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||