|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectskyview.util.SmartIntArray
public class SmartIntArray
this class allows you to build an array as you go.
| Constructor Summary | |
|---|---|
SmartIntArray()
|
|
SmartIntArray(int initialSize)
|
|
SmartIntArray(int initialSize,
int growthSize)
|
|
| Method Summary | |
|---|---|
void |
add(int i)
add element (integer) to array , check size and increase it if necessary |
int[] |
toArray()
trim array before return |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SmartIntArray()
public SmartIntArray(int initialSize)
public SmartIntArray(int initialSize,
int growthSize)
| Method Detail |
|---|
public void add(int i)
i - integer to add to arraypublic int[] toArray()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||