|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.lib.ejb21.jorm.GenClassImpl org.ow2.jonas.lib.ejb21.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.ow2.jonas.lib.ejb21.jorm.GenClassImpl |
---|
GenClassImpl.ElementIterator |
Field Summary |
---|
Fields inherited from class org.ow2.jonas.lib.ejb21.jorm.GenClassImpl |
---|
deletedLength, ectx, gcm, isModified, listener, pb, pIndexedElems, selectForUpdate, size |
Constructor Summary | |
---|---|
Set()
|
Method Summary | |
---|---|
boolean |
add(Object o)
Before adding the object into the set, it checks that the new element does not exist. |
boolean |
add(Object o,
boolean callListener)
|
boolean |
addAll(Collection collection)
It iterates over the collection parameter to add each element in the collection. |
void |
clear()
It removes all elements. |
boolean |
contains(Object o)
|
boolean |
containsAll(Collection collection)
|
boolean |
isEmpty()
|
Iterator |
iterator()
|
boolean |
remove(Object o)
|
boolean |
remove(Object o,
boolean callListener)
|
boolean |
removeAll(Collection collection)
It iterates over the collection parameter to remove each element in the collection. |
boolean |
retainAll(Collection collection)
For each element of the current collection, it checks if it exist into the collection parameter. |
int |
size()
|
Object[] |
toArray()
It returns an array of the elements. |
Object[] |
toArray(Object[] objects)
It returns an array of the elements. |
Methods inherited from class org.ow2.jonas.lib.ejb21.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(Object o)
add
in interface Collection
add
in interface Set
o
- is the element to add
public boolean add(Object o, boolean callListener)
public int size()
size
in interface Collection
size
in interface Set
public boolean isEmpty()
isEmpty
in interface Collection
isEmpty
in interface Set
public boolean contains(Object o)
contains
in interface Collection
contains
in interface Set
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
iterator
in interface Set
public Object[] toArray()
toArray
in interface Collection
toArray
in interface Set
public Object[] toArray(Object[] objects)
toArray
in interface Collection
toArray
in interface Set
objects
- the array into which the elements of this collection are to be stored
public boolean remove(Object o)
remove
in interface Collection
remove
in interface Set
public boolean remove(Object o, boolean callListener)
public boolean containsAll(Collection collection)
containsAll
in interface Collection
containsAll
in interface Set
public boolean addAll(Collection collection)
addAll
in interface Collection
addAll
in interface Set
collection
- the collection of elements to addpublic boolean removeAll(Collection collection)
removeAll
in interface Collection
removeAll
in interface Set
collection
- The collection of elements to removepublic boolean retainAll(Collection collection)
retainAll
in interface Collection
retainAll
in interface Set
public void clear()
clear
in interface Collection
clear
in interface Set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |