| java.lang.Object org.objectweb.jonas_ejb.container.jorm.GenClassImpl org.objectweb.jonas_ejb.container.jorm.Set
Set | public class Set extends GenClassImpl implements java.util.Set(Code) | | This class is a basic implementation of the java.util.Set based on the
generic class implementation (GenClassImpl) and the Collection
implementation. This class can be used to represent a relation between bean.
author: S.Chassande-Barrioz : Initial developer author: Helene Joanin : fix bugs in the toArray(...) methods |
Constructor Summary | |
public | Set() |
add | public boolean add(Object o)(Code) | | Before adding the object into the set, it checks that the new element
does not exist.
Parameters: o - is the element to add true is the element has been added, and false is the elementalready exists in the set. |
addAll | public boolean addAll(java.util.Collection collection)(Code) | | It iterates over the collection parameter to add each element in the
collection.
Parameters: collection - the collection of elements to add |
clear | public void clear()(Code) | | It removes all elements.
|
isEmpty | public boolean isEmpty()(Code) | | |
remove | public boolean remove(Object o, boolean callListener)(Code) | | |
removeAll | public boolean removeAll(java.util.Collection collection)(Code) | | It iterates over the collection parameter to remove each element in the
collection.
Parameters: collection - The collection of elements to remove |
retainAll | public boolean retainAll(java.util.Collection collection)(Code) | | For each element of the current collection, it checks if it exist into
the collection parameter. If it does not found then it is removed from
the current collection.
|
toArray | public Object[] toArray()(Code) | | It returns an array of the elements.
array of the elements |
toArray | public Object[] toArray(Object[] objects)(Code) | | It returns an array of the elements.
It is built by an iteration over the existing elements.
Parameters: objects - the array into which the elements of this collection are to be stored array of the elements |
|
|