| Modifier and Type | Class and Description |
|---|---|
| public class | |
| public static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv SortedIntList. | |
| private transient SortedIntList | |
| private SortedIntList. | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public E | Returns: Matching element, null otherwiseIndex of the element to retrieve index)Retrieves an element at a given index |
| public E | Returns: Element replaced by newly inserted element, null if nothing was replacedIndex of the element index, E Element to insert value)Inserts an element into the list at the given index |
| public boolean | |
| public Iterator | |
| public boolean | |
| public int |
| first | back to summary |
|---|---|
| pack-priv SortedIntList. | |
| iterator | back to summary |
|---|---|
| private transient SortedIntList<E>. | |
| nodePool | back to summary |
|---|---|
| private SortedIntList. | |
| size | back to summary |
|---|---|
| pack-priv int size | |
| SortedIntList | back to summary |
|---|---|
| public SortedIntList() Creates an ascending list | |
| clear | back to summary |
|---|---|
| public void clear() Clears list | |
| get | back to summary |
|---|---|
| public E get(int index) Retrieves an element at a given index
| |
| insert | back to summary |
|---|---|
| public E insert(int index, E value) Inserts an element into the list at the given index
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Returns true if the list is empty. | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Returns an iterator to traverse the list.
If | |
| notEmpty | back to summary |
|---|---|
| public boolean notEmpty() Returns true if the list has one or more items. | |
| size | back to summary |
|---|---|
public int size()
| |
| Modifier and Type | Field and Description |
|---|---|
| private SortedIntList. | |
| private SortedIntList. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public SortedIntList. | |
| public void | remove()
Overrides default java. Removes from the underlying collection the last element returned by this iterator (optional operation). |
| public SortedIntList |
| position | back to summary |
|---|---|
| private SortedIntList. | |
| previousPosition | back to summary |
|---|---|
| private SortedIntList. | |
| Iterator | back to summary |
|---|---|
| public Iterator() | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public SortedIntList. Implements java. Doc from java. Returns the next element in the iteration.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |
| reset | back to summary |
|---|---|
| public SortedIntList | |
| Modifier and Type | Field and Description |
|---|---|
| public int | index
Index value in list |
| protected SortedIntList. | n
Node next to this |
| protected SortedIntList. | p
Node previous to this |
| public E | value
Value held |
| Access | Constructor and Description |
|---|---|
| public |
| index | back to summary |
|---|---|
| public int index Index value in list | |
| n | back to summary |
|---|---|
| protected SortedIntList. Node next to this | |
| p | back to summary |
|---|---|
| protected SortedIntList. Node previous to this | |
| value | back to summary |
|---|---|
| public E value Value held | |
| Node | back to summary |
|---|---|
| public Node() | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected SortedIntList. | |
| public SortedIntList. |
| NodePool | back to summary |
|---|---|
| pack-priv NodePool() | |
| newObject | back to summary |
|---|---|
| protected SortedIntList. Implements abstract com.
| |
| obtain | back to summary |
|---|---|
| public SortedIntList. | |