|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Method Summary | |
boolean |
add(java.lang.Object o,
java.lang.Object connection)
Adds the specified element to this set if it is not already present (optional operation). |
boolean |
addAll(Set c,
java.lang.Object connection)
Adds all of the elements in the specified collection to this set if they're not already present (optional operation). |
void |
clear(java.lang.Object connection)
Removes all of the elements from this set (optional operation). |
boolean |
contains(java.lang.Object o,
java.lang.Object connection)
Returns true if this set contains the specified element. |
boolean |
containsAll(Set c,
java.lang.Object connection)
Returns true if this set contains all of the elements of the specified collection. |
boolean |
isEmpty(java.lang.Object connection)
Returns true if this set contains no elements. |
java.util.Iterator |
iterator(java.lang.Object connection)
Returns an iterator over the elements in this set. |
boolean |
remove(java.lang.Object o,
java.lang.Object connection)
Removes the specified element from this set if it is present (optional operation). |
boolean |
removeAll(Set c,
java.lang.Object connection)
Removes from this set all of its elements that are contained in the specified collection (optional operation). |
boolean |
retainAll(Set c,
java.lang.Object connection)
Retains only the elements in this set that are contained in the specified collection (optional operation). |
int |
size(java.lang.Object connection)
Returns the number of elements in this set (its cardinality). |
java.lang.Object[] |
toArray(java.lang.Object connection)
Returns an array containing all of the elements in this set. |
java.lang.Object[] |
toArray(java.lang.Object[] a,
java.lang.Object connection)
Returns an array containing all of the elements in this set whose runtime type is that of the specified array. |
| Method Detail |
public int size(java.lang.Object connection)
throws PException
connection - used to access the data storePException - a internal jorm error occured
public boolean isEmpty(java.lang.Object connection)
throws PException
connection - used to access the data storePException - a internal jorm error occured
public boolean contains(java.lang.Object o,
java.lang.Object connection)
throws PException
e such that (o==null ? e==null :
o.equals(e)).o - element whose presence in this set is to be tested.connection - used to access the data storePException - a internal jorm error occured
public java.util.Iterator iterator(java.lang.Object connection)
throws PException
connection - used to access the data storePException - a internal jorm error occured
public java.lang.Object[] toArray(java.lang.Object connection)
throws PException
connection - used to access the data storePException - a internal jorm error occured
public java.lang.Object[] toArray(java.lang.Object[] a,
java.lang.Object connection)
throws PException
a - the array into which the elements of this set are to
be stored, if it is big enough; otherwise, a new array of the
same runtime type is allocated for this purpose.connection - used to access the data storeArrayStoreException - the runtime type of a is not a supertype
of the runtime type of every element in this set.PException - a internal jorm error occured
public boolean add(java.lang.Object o,
java.lang.Object connection)
throws PException
o, to this set if this set contains no element
e such that (o==null ? e==null :
o.equals(e)). If this set already contains the specified
element, the call leaves this set unchanged and returns false.
In combination with the restriction on constructors, this ensures that
sets never contain duplicate elements.The stipulation above does not imply that sets must accept all elements; sets may refuse to add any particular element, including null, and throwing an exception, as described in the specification for Collection.add. Individual set implementations should clearly document any restrictions on the the elements that they may contain.
o - element to be added to this set.connection - used to access the data storejava.lang.UnsupportedOperationException - if the add method is not
supported by this set.ClassCastException - if the class of the specified element
prevents it from being added to this set.java.lang.IllegalArgumentException - if some aspect of this element
prevents it from being added to this set.PException - a internal jorm error occured
public boolean remove(java.lang.Object o,
java.lang.Object connection)
throws PException
e such that
(o==null ? e==null : o.equals(e)), if the set contains
such an element. Returns true if the set contained the
specified element (or equivalently, if the set changed as a result of
the call). (The set will not contain the specified element once the
call returns.)o - object to be removed from this set, if present.connection - used to access the data storejava.lang.UnsupportedOperationException - if the remove method is
not supported by this set.PException - a internal jorm error occured
public boolean containsAll(Set c,
java.lang.Object connection)
throws PException
c - collection to be checked for containment in this set.connection - used to access the data storePException - a internal jorm error occured
public boolean addAll(Set c,
java.lang.Object connection)
throws PException
c - collection whose elements are to be added to this set.connection - used to access the data storejava.lang.UnsupportedOperationException - if the addAll method is
not supported by this set.ClassCastException - if the class of some element of the
specified collection prevents it from being added to this
set.java.lang.IllegalArgumentException - if some aspect of some element of the
specified collection prevents it from being added to this
set.PException - a internal jorm error occured#add(Object)
public boolean retainAll(Set c,
java.lang.Object connection)
throws PException
c - collection that defines which elements this set will retain.connection - used to access the data storejava.lang.UnsupportedOperationException - if the retainAll method
is not supported by this Collection.PException - a internal jorm error occured#remove(Object)
public boolean removeAll(Set c,
java.lang.Object connection)
throws PException
c - collection that defines which elements will be removed from
this set.connection - used to access the data storejava.lang.UnsupportedOperationException - if the removeAll
method is not supported by this Collection.PException - a internal jorm error occured#remove(Object)
public void clear(java.lang.Object connection)
throws PException
connection - used to access the data storejava.lang.UnsupportedOperationException - if the clear method
is not supported by this set.PException - a internal jorm error occured
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||