|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.saga.annotation.AssociationValuesImpl
public class AssociationValuesImpl
Default implementation of the AssociationValues interface. This implementation is fully serializable.
Constructor Summary | |
---|---|
AssociationValuesImpl()
|
Method Summary | |
---|---|
boolean |
add(AssociationValue associationValue)
Adds the given associationValue , if it has not been previously added. |
Set<AssociationValue> |
addedAssociations()
Returns the Set of association values that have been added since the last AssociationValues.commit() . |
Set<AssociationValue> |
asSet()
Returns this instance as a Set of Association Values. |
void |
commit()
Resets the tracked changes. |
boolean |
contains(AssociationValue associationValue)
Indicates whether this instance contains the given associationValue . |
Iterator<AssociationValue> |
iterator()
|
boolean |
remove(AssociationValue associationValue)
Removes the given associationValue , if it is contained by this instance. |
Set<AssociationValue> |
removedAssociations()
Returns the Set of association values that have been removed since the last AssociationValues.commit() . |
int |
size()
Returns the number of AssociationValue instances available in this container |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AssociationValuesImpl()
Method Detail |
---|
public int size()
AssociationValues
size
in interface AssociationValues
public boolean contains(AssociationValue associationValue)
AssociationValues
associationValue
.
contains
in interface AssociationValues
associationValue
- the association value to verify
true
if the association value is available in this instance, otherwise false
public Iterator<AssociationValue> iterator()
iterator
in interface Iterable<AssociationValue>
public boolean add(AssociationValue associationValue)
AssociationValues
associationValue
, if it has not been previously added.
When added (method returns true
), the given associationValue
will be returned on the
next call to AssociationValues.addedAssociations()
, unless it has been removed after the last call to AssociationValues.removedAssociations()
.
add
in interface AssociationValues
associationValue
- The association value to add
true
if the value was added, false
if it was already contained in this
instancepublic boolean remove(AssociationValue associationValue)
AssociationValues
associationValue
, if it is contained by this instance.
When removed (method returns true
), the given associationValue
will be returned on the
next call to AssociationValues.removedAssociations()
, unless it has been added after the last call to AssociationValues.addedAssociations()
.
remove
in interface AssociationValues
associationValue
- The association value to remove
true
if the value was removed, false
if it was not contained in this instancepublic Set<AssociationValue> asSet()
AssociationValues
asSet
in interface AssociationValues
public Set<AssociationValue> removedAssociations()
AssociationValues
AssociationValues.commit()
.
If an association was added and then removed (or vice versa), without any calls to AssociationValues.commit()
in
between, it is not returned.
removedAssociations
in interface AssociationValues
AssociationValues.commit()
.public Set<AssociationValue> addedAssociations()
AssociationValues
AssociationValues.commit()
.
If an association was added and then removed (or vice versa), without any calls to AssociationValues.commit()
in
between, it is not returned.
addedAssociations
in interface AssociationValues
AssociationValues.commit()
.public void commit()
AssociationValues
commit
in interface AssociationValues
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |