| 
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
This class represents unmodifiable collections of boolean values.
Collections.unmodifiableCollection(java.util.Collection)| Field Summary | |
protected  BooleanCollection | 
collection
The collection underlying this unmodifiable collection.  | 
| Constructor Summary | |
UnmodifiableBooleanCollection(BooleanCollection c)
Creates a new unmodifiable collection on an existing collection.  | 
|
| Method Summary | |
 boolean | 
add(boolean v)
Throws UnsupportedOperationException.  | 
 boolean | 
addAll(BooleanCollection c)
Throws UnsupportedOperationException.  | 
 void | 
clear()
Throws UnsupportedOperationException.  | 
 boolean | 
contains(boolean v)
Indicates whether this collection contains a specified element.  | 
 boolean | 
containsAll(BooleanCollection c)
Indicates whether all elements of a specified collection is contained in this collection.  | 
 boolean | 
equals(Object obj)
Indicates whether this collection is equal to some object.  | 
 int | 
hashCode()
Returns a hash code value for this collection.  | 
 boolean | 
isEmpty()
Indicates whether this collection is empty.  | 
 BooleanIterator | 
iterator()
Returns an iterator over this collection.  | 
 boolean | 
remove(boolean v)
Throws UnsupportedOperationException.  | 
 boolean | 
removeAll(BooleanCollection c)
Throws UnsupportedOperationException.  | 
 boolean | 
retainAll(BooleanCollection c)
Throws UnsupportedOperationException.  | 
 int | 
size()
Returns the number of elements in this collection.  | 
 boolean[] | 
toArray()
Returns the elements of this collection as an array.  | 
 boolean[] | 
toArray(boolean[] a)
Returns the elements of this collection as an array.  | 
 void | 
trimToSize()
Minimizes the memory used by this collection.  | 
| Methods inherited from class java.lang.Object | 
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
protected BooleanCollection collection
| Constructor Detail | 
public UnmodifiableBooleanCollection(BooleanCollection c)
c - the existing collection to make unmodifiable.
NullPointerException - if c is null.| Method Detail | 
public boolean add(boolean v)
add in interface BooleanCollectionv - the element to add to this collection.
UnsupportedOperationException - unconditionally.BooleanCollection.addAll(BooleanCollection)public boolean addAll(BooleanCollection c)
addAll in interface BooleanCollectionc - the collection whose elements to add to this
              collection.
UnsupportedOperationException - unconditionally.BooleanCollection.add(boolean)public void clear()
clear in interface BooleanCollectionUnsupportedOperationException - unconditionally.public boolean contains(boolean v)
BooleanCollection
contains in interface BooleanCollectionv - the element to test for containment.
BooleanCollection.containsAll(BooleanCollection)public boolean containsAll(BooleanCollection c)
BooleanCollection
containsAll in interface BooleanCollectionc - the collection whose elements to test for
              containment.
BooleanCollection.contains(boolean)public boolean equals(Object obj)
BooleanCollection
equals in interface BooleanCollectionpublic int hashCode()
BooleanCollection
hashCode in interface BooleanCollectionpublic boolean isEmpty()
BooleanCollection
isEmpty in interface BooleanCollectionpublic BooleanIterator iterator()
BooleanCollection
iterator in interface BooleanCollectionpublic boolean remove(boolean v)
remove in interface BooleanCollectionv - the boolean value to remove from this collection.
UnsupportedOperationException - unconditionally.public boolean removeAll(BooleanCollection c)
removeAll in interface BooleanCollectionc - the collection whose elements to remove from this
              collection.
UnsupportedOperationException - unconditionally.public boolean retainAll(BooleanCollection c)
retainAll in interface BooleanCollectionc - the collection whose elements to retain in this
              collection.
UnsupportedOperationException - unconditionally.public int size()
BooleanCollection
size in interface BooleanCollectionpublic boolean[] toArray()
BooleanCollection
toArray in interface BooleanCollectionpublic boolean[] toArray(boolean[] a)
BooleanCollection
toArray in interface BooleanCollectiona - an array to fill with the elements of this
              collection; if a is null or not
              big enough to contain all the elements of this
              collection, an new array is allocated,
              and a is not changed.
public void trimToSize()
BooleanCollection
trimToSize in interface BooleanCollection
  | 
PCJ API Version 1.2  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||