|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.media.j3d.GeneralizedStrip.IntList
static class GeneralizedStrip.IntList
The IntList is like an ArrayList, but avoids the Integer object wrapper and accessor overhead for simple lists of ints.
| Field Summary | |
|---|---|
(package private) int |
count
The number of ints in this instance. |
(package private) int[] |
ints
The array of ints. |
| Constructor Summary | |
|---|---|
GeneralizedStrip.IntList(int initialSize)
Construct a new empty IntList of the given initial size. |
|
GeneralizedStrip.IntList(int[] ints)
Constructs an IntList with the given contents. |
|
| Method Summary | |
|---|---|
(package private) void |
add(int i)
Add a new int to the end of this list. |
(package private) void |
fillAscending()
Fill the list with consecutive integers starting from 0. |
java.lang.String |
toString()
|
(package private) int[] |
trim()
Trim the backing array to the current count and return the resulting backing array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
int[] ints
int count
| Constructor Detail |
|---|
GeneralizedStrip.IntList(int initialSize)
initialSize - initial size of the backing arrayGeneralizedStrip.IntList(int[] ints)
ints - the array of ints to use as the contents| Method Detail |
|---|
void add(int i)
i - the int to be appended to this listint[] trim()
void fillAscending()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||