|
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.UnmodifiableBooleanCollection
bak.pcj.list.UnmodifiableBooleanList
This class represents unmodifiable lists of boolean values.
Collections.unmodifiableList(java.util.List)| Field Summary |
| Fields inherited from class bak.pcj.UnmodifiableBooleanCollection |
collection |
| Constructor Summary | |
UnmodifiableBooleanList(BooleanList l)
Creates a new unmodifiable list on an existing list. |
|
| Method Summary | |
void |
add(int index,
boolean v)
Throws UnsupportedOperationException. |
boolean |
addAll(int index,
BooleanCollection c)
Throws UnsupportedOperationException. |
boolean |
get(int index)
Returns the element at a specified position in this list. |
int |
indexOf(boolean c)
Returns the index of the first occurance of a specified element in this list. |
int |
indexOf(int index,
boolean c)
Returns the index of the first occurance of a specified element in this list after or at a specified index. |
int |
lastIndexOf(boolean c)
Returns the index of the last occurance of a specified element in this list. |
int |
lastIndexOf(int index,
boolean c)
Returns the index of the last occurance of a specified element in this list before a specified index. |
BooleanListIterator |
listIterator()
Returns a list iterator over this list. |
BooleanListIterator |
listIterator(int index)
Returns a list iterator over this list, starting from a specified index. |
boolean |
removeElementAt(int index)
Throws UnsupportedOperationException. |
boolean |
set(int index,
boolean v)
Throws UnsupportedOperationException. |
| Methods inherited from class bak.pcj.UnmodifiableBooleanCollection |
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.BooleanCollection |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, trimToSize |
| Constructor Detail |
public UnmodifiableBooleanList(BooleanList l)
l - the existing list to make unmodifiable.
NullPointerException - if l is null.| Method Detail |
public void add(int index,
boolean v)
add in interface BooleanListindex - the index at which to add the element. If
index == size() the element is appended
to this list.v - the boolean value to add to this list.
UnsupportedOperationException - unconditionally.BooleanCollection.add(boolean),
BooleanCollection.addAll(BooleanCollection),
BooleanList.addAll(int,BooleanCollection)
public boolean addAll(int index,
BooleanCollection c)
addAll in interface BooleanListindex - 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.BooleanCollection.add(boolean),
BooleanList.add(int, boolean),
BooleanCollection.addAll(BooleanCollection)public boolean get(int index)
BooleanList
get in interface BooleanListindex - the position of the element to return.
public int indexOf(boolean c)
BooleanList
indexOf in interface BooleanListc - the element to find.
public int indexOf(int index,
boolean c)
BooleanList
indexOf in interface BooleanListc - the element to find.index - the index at which to start the search.
public int lastIndexOf(boolean c)
BooleanList
lastIndexOf in interface BooleanListc - the element to find.
public int lastIndexOf(int index,
boolean c)
BooleanList
lastIndexOf in interface BooleanListc - 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 BooleanListIterator listIterator()
BooleanList
listIterator in interface BooleanListpublic BooleanListIterator listIterator(int index)
BooleanList
listIterator in interface BooleanListindex - the index at which to begin the iteration.
public boolean removeElementAt(int index)
removeElementAt in interface BooleanListindex - the index of the element to remove.
UnsupportedOperationException - unconditionally.
public boolean set(int index,
boolean v)
set in interface BooleanListindex - 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 | |||||||||