Class TransformSet<E>
- java.lang.Object
- 
- jadex.commons.collection.wrappers.CollectionWrapper<T>
- 
- jadex.commons.collection.wrappers.SetWrapper<E>
- 
- jadex.commons.transformation.traverser.TransformSet<E>
 
 
 
- 
- All Implemented Interfaces:
- ITransformableObject,- java.lang.Iterable<E>,- java.util.Collection<E>,- java.util.Set<E>
 
 public class TransformSet<E> extends SetWrapper<E> implements ITransformableObject A set that transforms itself, i.e. makes a copy of itself. This ensures that the serializer has no concurrent access to the base object.
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringADDEDprotected java.util.List<IChangeListener<E>>listenersThe listeners.protected java.lang.Objectmutexstatic java.lang.StringREMOVED- 
Fields inherited from class jadex.commons.collection.wrappers.CollectionWrapperdelegate
 
- 
 - 
Constructor SummaryConstructors Constructor Description TransformSet()Create a new TransformSet.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(E e)booleanaddAll(java.util.Collection<? extends E> coll)voidaddChangeListener(IChangeListener<E> lis)Add a change listener.voidclear()booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> coll)protected voidentryAdded(E value, int index)An entry was added to the collection.protected voidentryChanged(E oldvalue, E newvalue, int index)An entry was changed in the collection.protected voidentryRemoved(E value, int index)An entry was removed from the collection.booleanequals(java.lang.Object o)Test if this object equals another.inthashCode()Get the hashcode of the object.booleanisEmpty()java.util.Iterator<E>iterator()protected voidnotifyListeners(ChangeEvent<E> event)Notify listeners of a change event.booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> coll)voidremoveChangeListener(IChangeListener<E> lis)Add a change listener.booleanretainAll(java.util.Collection<?> coll)intsize()Get the size.java.lang.Object[]toArray()<T> T[]toArray(T[] a)java.lang.StringtoString()Get the string representation.java.lang.Objecttransform()Return a transformed object.
 
- 
- 
- 
Field Detail- 
ADDEDpublic static final java.lang.String ADDED - See Also:
- Constant Field Values
 
 - 
REMOVEDpublic static final java.lang.String REMOVED - See Also:
- Constant Field Values
 
 - 
listenersprotected java.util.List<IChangeListener<E>> listeners The listeners.
 - 
mutexprotected final java.lang.Object mutex 
 
- 
 - 
Method Detail- 
sizepublic int size() Description copied from class:CollectionWrapperGet the size.- Specified by:
- sizein interface- java.util.Collection<E>
- Specified by:
- sizein interface- java.util.Set<E>
- Overrides:
- sizein class- CollectionWrapper<E>
 
 - 
isEmptypublic boolean isEmpty() - Specified by:
- isEmptyin interface- java.util.Collection<E>
- Specified by:
- isEmptyin interface- java.util.Set<E>
- Overrides:
- isEmptyin class- CollectionWrapper<E>
 
 - 
containspublic boolean contains(java.lang.Object o) - Specified by:
- containsin interface- java.util.Collection<E>
- Specified by:
- containsin interface- java.util.Set<E>
- Overrides:
- containsin class- CollectionWrapper<E>
 
 - 
toArraypublic java.lang.Object[] toArray() - Specified by:
- toArrayin interface- java.util.Collection<E>
- Specified by:
- toArrayin interface- java.util.Set<E>
- Overrides:
- toArrayin class- CollectionWrapper<E>
 
 - 
toArraypublic <T> T[] toArray(T[] a) - Specified by:
- toArrayin interface- java.util.Collection<E>
- Specified by:
- toArrayin interface- java.util.Set<E>
- Overrides:
- toArrayin class- CollectionWrapper<E>
 
 - 
iteratorpublic java.util.Iterator<E> iterator() 
 - 
addpublic boolean add(E e) - Specified by:
- addin interface- java.util.Collection<E>
- Specified by:
- addin interface- java.util.Set<E>
- Overrides:
- addin class- CollectionWrapper<E>
 
 - 
removepublic boolean remove(java.lang.Object o) - Specified by:
- removein interface- java.util.Collection<E>
- Specified by:
- removein interface- java.util.Set<E>
- Overrides:
- removein class- CollectionWrapper<E>
 
 - 
containsAllpublic boolean containsAll(java.util.Collection<?> coll) - Specified by:
- containsAllin interface- java.util.Collection<E>
- Specified by:
- containsAllin interface- java.util.Set<E>
- Overrides:
- containsAllin class- CollectionWrapper<E>
 
 - 
addAllpublic boolean addAll(java.util.Collection<? extends E> coll) - Specified by:
- addAllin interface- java.util.Collection<E>
- Specified by:
- addAllin interface- java.util.Set<E>
- Overrides:
- addAllin class- CollectionWrapper<E>
 
 - 
removeAllpublic boolean removeAll(java.util.Collection<?> coll) - Specified by:
- removeAllin interface- java.util.Collection<E>
- Specified by:
- removeAllin interface- java.util.Set<E>
- Overrides:
- removeAllin class- CollectionWrapper<E>
 
 - 
retainAllpublic boolean retainAll(java.util.Collection<?> coll) - Specified by:
- retainAllin interface- java.util.Collection<E>
- Specified by:
- retainAllin interface- java.util.Set<E>
- Overrides:
- retainAllin class- CollectionWrapper<E>
 
 - 
clearpublic void clear() - Specified by:
- clearin interface- java.util.Collection<E>
- Specified by:
- clearin interface- java.util.Set<E>
- Overrides:
- clearin class- CollectionWrapper<E>
 
 - 
toStringpublic java.lang.String toString() Description copied from class:CollectionWrapperGet the string representation.- Overrides:
- toStringin class- CollectionWrapper<E>
- Returns:
- The string representation.
 
 - 
equalspublic boolean equals(java.lang.Object o) Description copied from class:CollectionWrapperTest if this object equals another.- Specified by:
- equalsin interface- java.util.Collection<E>
- Specified by:
- equalsin interface- java.util.Set<E>
- Overrides:
- equalsin class- CollectionWrapper<E>
- Parameters:
- o- The other object.
- Returns:
- True, if equal.
 
 - 
hashCodepublic int hashCode() Description copied from class:CollectionWrapperGet the hashcode of the object.- Specified by:
- hashCodein interface- java.util.Collection<E>
- Specified by:
- hashCodein interface- java.util.Set<E>
- Overrides:
- hashCodein class- CollectionWrapper<E>
- Returns:
- The hashcode.
 
 - 
transformpublic java.lang.Object transform() Return a transformed object.- Specified by:
- transformin interface- ITransformableObject
- Returns:
- A transformed version of the object.
 
 - 
entryAddedprotected void entryAdded(E value, int index) An entry was added to the collection.- Specified by:
- entryAddedin class- CollectionWrapper<E>
 
 - 
entryRemovedprotected void entryRemoved(E value, int index) An entry was removed from the collection.- Specified by:
- entryRemovedin class- CollectionWrapper<E>
 
 - 
entryChangedprotected void entryChanged(E oldvalue, E newvalue, int index) An entry was changed in the collection.- Specified by:
- entryChangedin class- CollectionWrapper<E>
 
 - 
notifyListenersprotected void notifyListeners(ChangeEvent<E> event) Notify listeners of a change event.- Parameters:
- event- The event.
 
 - 
addChangeListenerpublic void addChangeListener(IChangeListener<E> lis) Add a change listener.- Parameters:
- lis- The listener.
 
 - 
removeChangeListenerpublic void removeChangeListener(IChangeListener<E> lis) Add a change listener.- Parameters:
- lis- The listener.
 
 
- 
 
-