public class AssociationValueMap extends Object
log(n)
.Constructor and Description |
---|
AssociationValueMap()
Initializes a new and empty AssociationValueMap.
|
Modifier and Type | Method and Description |
---|---|
void |
add(AssociationValue associationValue,
String sagaType,
String sagaIdentifier)
Adds an association between the given
associationValue and sagaIdentifier . |
void |
clear()
Clears all the associations.
|
Set<String> |
findSagas(String sagaType,
AssociationValue associationValue)
Returns the identifiers of the Sagas that have been associated with the given
associationValue . |
boolean |
isEmpty()
Indicates whether any elements are contained within this map.
|
void |
remove(AssociationValue associationValue,
String sagaType,
String sagaIdentifier)
Removes an association between the given
associationValue and sagaIdentifier . |
int |
size()
Returns an approximation of the size of this map.
|
public AssociationValueMap()
public Set<String> findSagas(String sagaType, AssociationValue associationValue)
associationValue
.sagaType
- The type of the associated SagaassociationValue
- The associationValue to find Sagas forpublic void add(AssociationValue associationValue, String sagaType, String sagaIdentifier)
associationValue
and sagaIdentifier
.associationValue
- The association value associated with the SagasagaType
- The type of the associated SagasagaIdentifier
- The identifier of the associated Sagapublic void remove(AssociationValue associationValue, String sagaType, String sagaIdentifier)
associationValue
and sagaIdentifier
.associationValue
- The association value associated with the SagasagaType
- The type of the associated SagasagaIdentifier
- The identifier of the associated Sagapublic void clear()
public boolean isEmpty()
true
if this Map is empty, false
if it contains any associations.public int size()
Copyright © 2010–2020. All rights reserved.