|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas_ejb.container.jorm.GenClassImpl org.objectweb.jonas_ejb.container.jorm.Set
public class Set
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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.objectweb.jonas_ejb.container.jorm.GenClassImpl |
---|
GenClassImpl.ElementIterator |
Field Summary |
---|
Fields inherited from class org.objectweb.jonas_ejb.container.jorm.GenClassImpl |
---|
deletedLength, ectx, gcm, isModified, listener, pb, pIndexedElems, selectForUpdate, size |
Constructor Summary | |
---|---|
Set()
|
Method Summary | |
---|---|
boolean |
add(java.lang.Object o)
Before adding the object into the set, it checks that the new element does not exist. |
boolean |
add(java.lang.Object o,
boolean callListener)
|
boolean |
addAll(java.util.Collection collection)
It iterates over the collection parameter to add each element in the collection. |
void |
clear()
It removes all elements. |
boolean |
contains(java.lang.Object o)
|
boolean |
containsAll(java.util.Collection collection)
|
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
boolean |
remove(java.lang.Object o)
|
boolean |
remove(java.lang.Object o,
boolean callListener)
|
boolean |
removeAll(java.util.Collection collection)
It iterates over the collection parameter to remove each element in the collection. |
boolean |
retainAll(java.util.Collection collection)
For each element of the current collection, it checks if it exist into the collection parameter. |
int |
size()
|
java.lang.Object[] |
toArray()
It returns an array of the elements. |
java.lang.Object[] |
toArray(java.lang.Object[] objects)
It returns an array of the elements. |
Methods inherited from class org.objectweb.jonas_ejb.container.jorm.GenClassImpl |
---|
createPIndexedElem, gcAdd, gcClear, gcContains, gcDeref, gcGetElement, gcGetPBinding, gcGetRealIndex, gcGetSize, gcIsModified, gcIterator, gcIterator, gcObject2ref, gcRemove, getListener, getMemoryInstance, paAdd, paDeltaSupported, paGetNbElem, paIterator, paSetNbElem, printState, read, reset, setEntityContext, setListener, setPBinding, setPClassMapping, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Set |
---|
equals, hashCode |
Constructor Detail |
---|
public Set()
Method Detail |
---|
public boolean add(java.lang.Object o)
add
in interface java.util.Collection
add
in interface java.util.Set
o
- is the element to add
public boolean add(java.lang.Object o, boolean callListener)
public int size()
size
in interface java.util.Collection
size
in interface java.util.Set
public boolean isEmpty()
isEmpty
in interface java.util.Collection
isEmpty
in interface java.util.Set
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection
contains
in interface java.util.Set
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
iterator
in interface java.util.Set
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection
toArray
in interface java.util.Set
public java.lang.Object[] toArray(java.lang.Object[] objects)
toArray
in interface java.util.Collection
toArray
in interface java.util.Set
objects
- the array into which the elements of this collection are to be stored
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection
remove
in interface java.util.Set
public boolean remove(java.lang.Object o, boolean callListener)
public boolean containsAll(java.util.Collection collection)
containsAll
in interface java.util.Collection
containsAll
in interface java.util.Set
public boolean addAll(java.util.Collection collection)
addAll
in interface java.util.Collection
addAll
in interface java.util.Set
collection
- the collection of elements to addpublic boolean removeAll(java.util.Collection collection)
removeAll
in interface java.util.Collection
removeAll
in interface java.util.Set
collection
- The collection of elements to removepublic boolean retainAll(java.util.Collection collection)
retainAll
in interface java.util.Collection
retainAll
in interface java.util.Set
public void clear()
clear
in interface java.util.Collection
clear
in interface java.util.Set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |