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