|
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.UnmodifiableShortCollection
This class represents unmodifiable collections of short values.
Collections.unmodifiableCollection(java.util.Collection)| Field Summary | |
protected ShortCollection |
collection
The collection underlying this unmodifiable collection. |
| Constructor Summary | |
UnmodifiableShortCollection(ShortCollection c)
Creates a new unmodifiable collection on an existing collection. |
|
| Method Summary | |
boolean |
add(short v)
Throws UnsupportedOperationException. |
boolean |
addAll(ShortCollection c)
Throws UnsupportedOperationException. |
void |
clear()
Throws UnsupportedOperationException. |
boolean |
contains(short v)
Indicates whether this collection contains a specified element. |
boolean |
containsAll(ShortCollection 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. |
ShortIterator |
iterator()
Returns an iterator over this collection. |
boolean |
remove(short v)
Throws UnsupportedOperationException. |
boolean |
removeAll(ShortCollection c)
Throws UnsupportedOperationException. |
boolean |
retainAll(ShortCollection c)
Throws UnsupportedOperationException. |
int |
size()
Returns the number of elements in this collection. |
short[] |
toArray()
Returns the elements of this collection as an array. |
short[] |
toArray(short[] 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 ShortCollection collection
| Constructor Detail |
public UnmodifiableShortCollection(ShortCollection c)
c - the existing collection to make unmodifiable.
NullPointerException - if c is null.| Method Detail |
public boolean add(short v)
add in interface ShortCollectionv - the element to add to this collection.
UnsupportedOperationException - unconditionally.ShortCollection.addAll(ShortCollection)public boolean addAll(ShortCollection c)
addAll in interface ShortCollectionc - the collection whose elements to add to this
collection.
UnsupportedOperationException - unconditionally.ShortCollection.add(short)public void clear()
clear in interface ShortCollectionUnsupportedOperationException - unconditionally.public boolean contains(short v)
ShortCollection
contains in interface ShortCollectionv - the element to test for containment.
ShortCollection.containsAll(ShortCollection)public boolean containsAll(ShortCollection c)
ShortCollection
containsAll in interface ShortCollectionc - the collection whose elements to test for
containment.
ShortCollection.contains(short)public boolean equals(Object obj)
ShortCollection
equals in interface ShortCollectionpublic int hashCode()
ShortCollection
hashCode in interface ShortCollectionpublic boolean isEmpty()
ShortCollection
isEmpty in interface ShortCollectionpublic ShortIterator iterator()
ShortCollection
iterator in interface ShortCollectionpublic boolean remove(short v)
remove in interface ShortCollectionv - the short value to remove from this collection.
UnsupportedOperationException - unconditionally.public boolean removeAll(ShortCollection c)
removeAll in interface ShortCollectionc - the collection whose elements to remove from this
collection.
UnsupportedOperationException - unconditionally.public boolean retainAll(ShortCollection c)
retainAll in interface ShortCollectionc - the collection whose elements to retain in this
collection.
UnsupportedOperationException - unconditionally.public int size()
ShortCollection
size in interface ShortCollectionpublic short[] toArray()
ShortCollection
toArray in interface ShortCollectionpublic short[] toArray(short[] a)
ShortCollection
toArray in interface ShortCollectiona - 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()
ShortCollection
trimToSize in interface ShortCollection
|
PCJ API Version 1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||