|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unimi.dsi.fastutil.shorts.ShortCollections.SynchronizedCollection
A synchronized wrapper class for collections.
| Field Summary | |
static long |
serialVersionUID
|
| Method Summary | |
boolean |
add(Object k)
|
boolean |
add(short k)
|
boolean |
addAll(Collection c)
|
boolean |
addAll(ShortCollection c)
|
void |
clear()
|
boolean |
contains(Object k)
|
boolean |
contains(short o)
|
boolean |
containsAll(Collection c)
|
boolean |
containsAll(ShortCollection c)
|
boolean |
isEmpty()
|
Iterator |
iterator()
|
boolean |
rem(short 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(Collection c)
|
boolean |
removeAll(ShortCollection c)
|
boolean |
retainAll(Collection c)
|
boolean |
retainAll(ShortCollection c)
|
ShortIterator |
shortIterator()
Returns a type-specific iterator on the collection. |
int |
size()
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] a)
|
short[] |
toArray(short[] a)
Builds a primitive type array containing the items of this collection. |
short[] |
toShortArray()
Returns a primitive type array containing the items of this collection. |
short[] |
toShortArray(short[] 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(short o)
contains in interface ShortCollectionCollection.contains(Object)public short[] toShortArray()
ShortCollection
toShortArray in interface ShortCollectionCollection.toArray()public short[] toShortArray(short[] a)
ShortCollection
toShortArray in interface ShortCollectiona - if this array is big enough, it will be used to store the collection.
Collection.toArray(Object[])public Iterator iterator()
iterator in interface Collectionpublic ShortIterator shortIterator()
ShortCollectionThe iterator returned by the Collection.iterator() method and by this
method are identical; however, using this method you can save a type casting.
shortIterator in interface ShortCollectionCollection.iterator()public boolean add(short k)
add in interface ShortCollectionCollection.add(Object)public boolean rem(short k)
ShortCollectionremove(), 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 ShortCollectionCollection.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(ShortCollection c)
containsAll in interface ShortCollectionCollection.containsAll(Collection)public boolean addAll(ShortCollection c)
addAll in interface ShortCollectionCollection.addAll(Collection)public boolean removeAll(ShortCollection c)
removeAll in interface ShortCollectionCollection.removeAll(Collection)public boolean retainAll(ShortCollection c)
retainAll in interface ShortCollectionCollection.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 short[] toArray(short[] a)
ShortCollection
toArray in interface ShortCollectiona - 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 | |||||||||