| 
PCJ API Version 1.2  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbak.pcj.UnmodifiableLongCollection
bak.pcj.list.UnmodifiableLongList
This class represents unmodifiable lists of long values.
Collections.unmodifiableList(java.util.List)| Field Summary | 
| Fields inherited from class bak.pcj.UnmodifiableLongCollection | 
collection | 
| Constructor Summary | |
UnmodifiableLongList(LongList l)
Creates a new unmodifiable list on an existing list.  | 
|
| Method Summary | |
 void | 
add(int index,
    long v)
Throws UnsupportedOperationException.  | 
 boolean | 
addAll(int index,
       LongCollection c)
Throws UnsupportedOperationException.  | 
 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)
Throws UnsupportedOperationException.  | 
 long | 
set(int index,
    long v)
Throws UnsupportedOperationException.  | 
| Methods inherited from class bak.pcj.UnmodifiableLongCollection | 
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, trimToSize | 
| Methods inherited from class java.lang.Object | 
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface bak.pcj.LongCollection | 
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, trimToSize | 
| Constructor Detail | 
public UnmodifiableLongList(LongList l)
l - the existing list to make unmodifiable.
NullPointerException - if l is null.| Method Detail | 
public void add(int index,
                long v)
add in interface LongListindex - 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 - unconditionally.LongCollection.add(long), 
LongCollection.addAll(LongCollection), 
LongList.addAll(int,LongCollection)
public boolean addAll(int index,
                      LongCollection c)
addAll in interface LongListindex - 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 - unconditionally.LongCollection.add(long), 
LongList.add(int, long), 
LongCollection.addAll(LongCollection)public long get(int index)
LongList
get in interface LongListindex - the position of the element to return.
public int indexOf(long c)
LongList
indexOf in interface LongListc - the element to find.
public int indexOf(int index,
                   long c)
LongList
indexOf in interface LongListc - the element to find.index - the index at which to start the search.
public int lastIndexOf(long c)
LongList
lastIndexOf in interface LongListc - the element to find.
public int lastIndexOf(int index,
                       long c)
LongList
lastIndexOf in interface LongListc - 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.
public LongListIterator listIterator()
LongList
listIterator in interface LongListpublic LongListIterator listIterator(int index)
LongList
listIterator in interface LongListindex - the index at which to begin the iteration.
public long removeElementAt(int index)
removeElementAt in interface LongListindex - the index of the element to remove.
UnsupportedOperationException - unconditionally.
public long set(int index,
                long v)
set in interface LongListindex - the index of the element whose value to set.v - the new value of the specified element.
UnsupportedOperationException - unconditionally.
  | 
PCJ API Version 1.2  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||