| Access | Constructor and Description |
|---|---|
| public | |
| public | LongList(int
number of entries the list can initially hold. capacity)Create an empty list with the specified capacity. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public boolean | Returns: true ofvalue appears in this list.the value to search for. value)Determine if an entry appears in this collection. |
| public void | fillTo(int
index position to stop filling at. 0 inserts no filler. 1
ensures the list has a size of 1, adding toIndex, long val if
the list is currently empty.value to insert into padded positions. val)Pad the list with entries. |
| public long | |
| private void | |
| public void | |
| public int | |
| public void | |
| public String |
| LongList | back to summary |
|---|---|
| public LongList() Create an empty list with a default capacity. | |
| LongList | back to summary |
|---|---|
| public LongList(int capacity) Create an empty list with the specified capacity.
| |
| add | back to summary |
|---|---|
| public void add(long n) Add an entry to the end of the list.
| |
| clear | back to summary |
|---|---|
| public void clear() Clear this list | |
| contains | back to summary |
|---|---|
| public boolean contains(long value) Determine if an entry appears in this collection.
| |
| fillTo | back to summary |
|---|---|
| public void fillTo(int toIndex, long val) Pad the list with entries.
| |
| get | back to summary |
|---|---|
| public long get(int i) Get the value at the specified index
| |
| grow | back to summary |
|---|---|
| private void grow() | |
| set | back to summary |
|---|---|
| public void set(int index, long n) Assign an entry in the list.
| |
| size | back to summary |
|---|---|
| public int size() Get number of entries in this list
| |
| sort | back to summary |
|---|---|
| public void sort() Sort the list of longs according to their natural ordering. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |