|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.physics.fluids.dynamics.util.VectorFastInt
public class VectorFastInt
DOCUMENT ME!
| Constructor Summary | |
|---|---|
VectorFastInt()
constructor by default |
|
VectorFastInt(int initialSize,
int incr)
constructor |
|
| Method Summary | |
|---|---|
void |
addElement(int value)
add an element. |
void |
addElementNoRep(int value)
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)
returns the element at the given position |
int[] |
getTruncatedArray()
returns the data contained in the container as an array of int's with the exact size. |
boolean |
isElement(int value)
returns true if the element is contained in the
container. |
void |
reset()
Empty the vector quickly, but keeping the memory RAM. |
int |
size()
returns the number of stored elements. |
void |
sortArray(int tipo)
Sorts the elements of the array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VectorFastInt()
public VectorFastInt(int initialSize,
int incr)
initialSize - DOCUMENT ME!incr - DOCUMENT ME!| Method Detail |
|---|
public void addElement(int value)
value - DOCUMENT ME!public void addElementNoRep(int value)
value - DOCUMENT ME!public int[] array()
public int elementAt(int i)
i - DOCUMENT ME!
public int[] getTruncatedArray()
public void sortArray(int tipo)
tipo - 1 for going from lower to bigger, -1 for going from bigger
to lower.public boolean isElement(int value)
true if the element is contained in the
container.
value - DOCUMENT ME!
public void reset()
public int size()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||