|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unimi.dsi.fastutil.booleans.BooleanCollections.SynchronizedCollection
A synchronized wrapper class for collections.
| Field Summary | |
static long |
serialVersionUID
|
| Method Summary | |
boolean |
add(boolean k)
|
boolean |
add(Object k)
|
boolean |
addAll(BooleanCollection c)
|
boolean |
addAll(Collection c)
|
BooleanIterator |
booleanIterator()
Returns a type-specific iterator on the collection. |
void |
clear()
|
boolean |
contains(boolean o)
|
boolean |
contains(Object k)
|
boolean |
containsAll(BooleanCollection c)
|
boolean |
containsAll(Collection c)
|
boolean |
isEmpty()
|
Iterator |
iterator()
|
boolean |
rem(boolean k)
Note that this method should be called remove(), but the clash
with the similarly named index-based method in the List interface
forces us to use a distinguished name. |
boolean |
remove(Object ok)
|
boolean |
removeAll(BooleanCollection c)
|
boolean |
removeAll(Collection c)
|
boolean |
retainAll(BooleanCollection c)
|
boolean |
retainAll(Collection c)
|
int |
size()
|
Object[] |
toArray()
|
boolean[] |
toArray(boolean[] a)
Builds a primitive type array containing the items of this collection. |
Object[] |
toArray(Object[] a)
|
boolean[] |
toBooleanArray()
Returns a primitive type array containing the items of this collection. |
boolean[] |
toBooleanArray(boolean[] a)
Builds a primitive type array containing the items of this collection. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
equals, hashCode |
| Field Detail |
public static final long serialVersionUID
| Method Detail |
public int size()
size in interface Collectionpublic boolean isEmpty()
isEmpty in interface Collectionpublic boolean contains(boolean o)
contains in interface BooleanCollectionCollection.contains(Object)public boolean[] toBooleanArray()
BooleanCollection
toBooleanArray in interface BooleanCollectionCollection.toArray()public boolean[] toBooleanArray(boolean[] a)
BooleanCollection
toBooleanArray in interface BooleanCollectiona - if this array is big enough, it will be used to store the collection.
Collection.toArray(Object[])public Iterator iterator()
iterator in interface Collectionpublic BooleanIterator booleanIterator()
BooleanCollectionThe iterator returned by the Collection.iterator() method and by this
method are identical; however, using this method you can save a type casting.
booleanIterator in interface BooleanCollectionCollection.iterator()public boolean add(boolean k)
add in interface BooleanCollectionCollection.add(Object)public boolean rem(boolean k)
BooleanCollectionremove(), but the clash
with the similarly named index-based method in the List interface
forces us to use a distinguished name. For simplicity, the set interfaces reinstates
remove().
rem in interface BooleanCollectionCollection.remove(Object)public boolean remove(Object ok)
remove in interface Collectionpublic boolean addAll(Collection c)
addAll in interface Collectionpublic boolean containsAll(Collection c)
containsAll in interface Collectionpublic boolean removeAll(Collection c)
removeAll in interface Collectionpublic boolean retainAll(Collection c)
retainAll in interface Collectionpublic boolean containsAll(BooleanCollection c)
containsAll in interface BooleanCollectionCollection.containsAll(Collection)public boolean addAll(BooleanCollection c)
addAll in interface BooleanCollectionCollection.addAll(Collection)public boolean removeAll(BooleanCollection c)
removeAll in interface BooleanCollectionCollection.removeAll(Collection)public boolean retainAll(BooleanCollection c)
retainAll in interface BooleanCollectionCollection.retainAll(Collection)public void clear()
clear in interface Collectionpublic String toString()
public boolean add(Object k)
add in interface Collectionpublic boolean contains(Object k)
contains in interface Collectionpublic Object[] toArray()
toArray in interface Collectionpublic Object[] toArray(Object[] a)
toArray in interface Collectionpublic boolean[] toArray(boolean[] a)
BooleanCollection
toArray in interface BooleanCollectiona - if this array is big enough, it will be used to store the collection.
Collection.toArray(Object[])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||