| 
PCJ API Version 1.2  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface represents lists of long values.
List| Method Summary | |
 void | 
add(int index,
    long v)
Adds an element to this list at a specified index.  | 
 boolean | 
addAll(int index,
       LongCollection c)
Adds all the elements of a specified collection to this list starting at a specified index.  | 
 long | 
get(int index)
Returns the element at a specified position in this list.  | 
 int | 
indexOf(int index,
        long c)
Returns the index of the first occurance of a specified element in this list after or at a specified index.  | 
 int | 
indexOf(long c)
Returns the index of the first occurance of a specified element in this list.  | 
 int | 
lastIndexOf(int index,
            long c)
Returns the index of the last occurance of a specified element in this list before a specified index.  | 
 int | 
lastIndexOf(long c)
Returns the index of the last occurance of a specified element in this list.  | 
 LongListIterator | 
listIterator()
Returns a list iterator over this list.  | 
 LongListIterator | 
listIterator(int index)
Returns a list iterator over this list, starting from a specified index.  | 
 long | 
removeElementAt(int index)
Removes the element at a specified index in this list.  | 
 long | 
set(int index,
    long v)
Sets a specified element to a new value.  | 
| Methods inherited from interface bak.pcj.LongCollection | 
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, trimToSize | 
| Method Detail | 
public void add(int index,
                long v)
index - the index at which to add the element. If
              index == size() the element is appended
              to this list.v - the long value to add to this list.
UnsupportedOperationException - if the operation is not supported by this
              list.
IndexOutOfBoundsException - if index does not denote a valid insertion
              position (valid: 0 - size()).LongCollection.add(long), 
LongCollection.addAll(LongCollection), 
addAll(int,LongCollection)
public boolean addAll(int index,
                      LongCollection c)
index - the index at which to insert the elements of
              the specified collection. If
              index == size() the elements are appended
              to this list.c - the collection whose elements to add to this
              list.
UnsupportedOperationException - if the operation is not supported by this
              list.
NullPointerException - if c is null.
IndexOutOfBoundsException - if index does not denote a valid insertion
              position (valid: 0 - size()).LongCollection.add(long), 
add(int, long), 
LongCollection.addAll(LongCollection)public long get(int index)
index - the position of the element to return.
IndexOutOfBoundsException - if index does not denote a valid index
              in this list.public int indexOf(long c)
c - the element to find.
public int indexOf(int index,
                   long c)
c - the element to find.index - the index at which to start the search.
IndexOutOfBoundsException - if index does not denote a valid
              iteration position (valid: 0 - size()).public int lastIndexOf(long c)
c - the element to find.
public int lastIndexOf(int index,
                       long c)
c - the element to find.index - the index at which to start the search. Note that
              the element at index is not included
              in the search.
IndexOutOfBoundsException - if index does not denote a valid
              iteration position (valid: 0 - size()).public LongListIterator listIterator()
public LongListIterator listIterator(int index)
index - the index at which to begin the iteration.
IndexOutOfBoundsException - if index does not denote a valid
              iteration position (valid: 0 - size()).public long removeElementAt(int index)
index - the index of the element to remove.
UnsupportedOperationException - if the operation is not supported by this
              list.
IndexOutOfBoundsException - if index does not denote a valid
              element position (valid: 0 - size()-1).
public long set(int index,
                long v)
index - the index of the element whose value to set.v - the new value of the specified element.
UnsupportedOperationException - if the operation is not supported by this
              list.
IndexOutOfBoundsException - if index does not denote a valid
              element position (valid: 0 - size()-1).
  | 
PCJ API Version 1.2  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||