static class GeneralizedStrip.IntList
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
count
The number of ints in this instance.
|
(package private) int[] |
ints
The array of ints.
|
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
(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.
|
int[] ints
int count
GeneralizedStrip.IntList(int initialSize)
initialSize - initial size of the backing arrayGeneralizedStrip.IntList(int[] ints)
ints - the array of ints to use as the contentsvoid 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.ObjectCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.