org.axonframework.saga.annotation
Class AssociationValuesImpl
java.lang.Object
org.axonframework.saga.annotation.AssociationValuesImpl
- All Implemented Interfaces:
- Serializable, Iterable<AssociationValue>, Collection<AssociationValue>, Set<AssociationValue>, AssociationValues
public class AssociationValuesImpl
- extends Object
- implements AssociationValues, Serializable
Default implementation of the AssociationValues interface. This implementation is fully serializable. Registered
ChangeListeners are cleared upon serialization and need to be reregistered after deserialization.
- Since:
- 0.7
- Author:
- Allard Buijze
- See Also:
- Serialized Form
AssociationValuesImpl
public AssociationValuesImpl()
addChangeListener
public void addChangeListener(AssociationValues.ChangeListener changeListener)
- Description copied from interface:
AssociationValues
- Registers a listener that is notified when AssociationValue instances are wither added or removed from this
collection.
- Specified by:
addChangeListener in interface AssociationValues
- Parameters:
changeListener - The listener to register
removeChangeListener
public void removeChangeListener(AssociationValues.ChangeListener changeListener)
- Description copied from interface:
AssociationValues
- Removes the registered changeListener.
- Specified by:
removeChangeListener in interface AssociationValues
- Parameters:
changeListener - The listener to remove
size
public int size()
- Specified by:
size in interface Collection<AssociationValue>- Specified by:
size in interface Set<AssociationValue>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Collection<AssociationValue>- Specified by:
isEmpty in interface Set<AssociationValue>
contains
public boolean contains(Object o)
- Specified by:
contains in interface Collection<AssociationValue>- Specified by:
contains in interface Set<AssociationValue>
iterator
public Iterator<AssociationValue> iterator()
- Specified by:
iterator in interface Iterable<AssociationValue>- Specified by:
iterator in interface Collection<AssociationValue>- Specified by:
iterator in interface Set<AssociationValue>
toArray
public Object[] toArray()
- Specified by:
toArray in interface Collection<AssociationValue>- Specified by:
toArray in interface Set<AssociationValue>
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray in interface Collection<AssociationValue>- Specified by:
toArray in interface Set<AssociationValue>
add
public boolean add(AssociationValue associationValue)
- Specified by:
add in interface Collection<AssociationValue>- Specified by:
add in interface Set<AssociationValue>
remove
public boolean remove(Object o)
- Specified by:
remove in interface Collection<AssociationValue>- Specified by:
remove in interface Set<AssociationValue>
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll in interface Collection<AssociationValue>- Specified by:
containsAll in interface Set<AssociationValue>
addAll
public boolean addAll(Collection<? extends AssociationValue> c)
- Specified by:
addAll in interface Collection<AssociationValue>- Specified by:
addAll in interface Set<AssociationValue>
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll in interface Collection<AssociationValue>- Specified by:
retainAll in interface Set<AssociationValue>
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll in interface Collection<AssociationValue>- Specified by:
removeAll in interface Set<AssociationValue>
clear
public void clear()
- Specified by:
clear in interface Collection<AssociationValue>- Specified by:
clear in interface Set<AssociationValue>
equals
public boolean equals(Object o)
- Specified by:
equals in interface Collection<AssociationValue>- Specified by:
equals in interface Set<AssociationValue>- Overrides:
equals in class Object
hashCode
public int hashCode()
- Specified by:
hashCode in interface Collection<AssociationValue>- Specified by:
hashCode in interface Set<AssociationValue>- Overrides:
hashCode in class Object
Copyright © 2011. All Rights Reserved.