| 
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.SynchronizedFloatCollection
This class represents synchronized collections of float values. As in the Java Collections API iterations over the collection must be synchronized on the collection itself.
Collections.synchronizedCollection(java.util.Collection)| Field Summary | |
protected  FloatCollection | 
collection
The collection underlying this synchronized collection.  | 
protected  Object | 
m
An object on which to synchronize this collection's methods.  | 
| Constructor Summary | |
SynchronizedFloatCollection(FloatCollection c)
Creates a new synchronized collection on an existing collection.  | 
|
| Method Summary | |
 boolean | 
add(float v)
Adds an element to this collection.  | 
 boolean | 
addAll(FloatCollection c)
Adds all the elements of a specified collection to this collection.  | 
 void | 
clear()
Clears this collection.  | 
 boolean | 
contains(float v)
Indicates whether this collection contains a specified element.  | 
 boolean | 
containsAll(FloatCollection 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.  | 
 FloatIterator | 
iterator()
Returns an iterator over this collection.  | 
 boolean | 
remove(float v)
Removes a specified element from this collection.  | 
 boolean | 
removeAll(FloatCollection c)
Removes all the elements of a specified collection from this collection.  | 
 boolean | 
retainAll(FloatCollection c)
Retains only the elements of a specified collection in this collection.  | 
 int | 
size()
Returns the number of elements in this collection.  | 
 float[] | 
toArray()
Returns the elements of this collection as an array.  | 
 float[] | 
toArray(float[] 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 FloatCollection collection
protected Object m
| Constructor Detail | 
public SynchronizedFloatCollection(FloatCollection c)
c - the existing collection to make synchronized.
NullPointerException - if c is null.| Method Detail | 
public boolean add(float v)
FloatCollection
add in interface FloatCollectionv - the element to add to this collection.
FloatCollection.addAll(FloatCollection)public boolean addAll(FloatCollection c)
FloatCollection
addAll in interface FloatCollectionc - the collection whose elements to add to this
              collection.
FloatCollection.add(float)public void clear()
FloatCollection
clear in interface FloatCollectionpublic boolean contains(float v)
FloatCollection
contains in interface FloatCollectionv - the element to test for containment.
FloatCollection.containsAll(FloatCollection)public boolean containsAll(FloatCollection c)
FloatCollection
containsAll in interface FloatCollectionc - the collection whose elements to test for
              containment.
FloatCollection.contains(float)public boolean equals(Object obj)
FloatCollection
equals in interface FloatCollectionpublic int hashCode()
FloatCollection
hashCode in interface FloatCollectionpublic boolean isEmpty()
FloatCollection
isEmpty in interface FloatCollectionpublic FloatIterator iterator()
FloatCollection
iterator in interface FloatCollectionpublic boolean remove(float v)
FloatCollection
remove in interface FloatCollectionv - the float value to remove from this collection.
public boolean removeAll(FloatCollection c)
FloatCollection
removeAll in interface FloatCollectionc - the collection whose elements to remove from this
              collection.
public boolean retainAll(FloatCollection c)
FloatCollection
retainAll in interface FloatCollectionc - the collection whose elements to retain in this
              collection.
public int size()
FloatCollection
size in interface FloatCollectionpublic float[] toArray()
FloatCollection
toArray in interface FloatCollectionpublic float[] toArray(float[] a)
FloatCollection
toArray in interface FloatCollectiona - 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()
FloatCollection
trimToSize in interface FloatCollection
  | 
PCJ API Version 1.2  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||