Package com.helger.phase4.model.pmode
Interface IPModeIDProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A nice little helper interface to dynamically create new PMode IDs based on
Initiator ID and Responder ID.
- Author:
- Philip Helger
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IPModeIDProviderThe default implementation combines initiator ID value and responder ID value with a minus sign -
Method Summary
Modifier and TypeMethodDescriptiongetPModeID(PModeParty aInitiator, PModeParty aResponder) Create a PMode ID from initiator and responder.
-
Field Details
-
DEFAULT_DYNAMIC
The default implementation combines initiator ID value and responder ID value with a minus sign
-
-
Method Details
-
getPModeID
Create a PMode ID from initiator and responder. This was changed in v2.2.0 to use the full PMode party instead of just the ID.- Parameters:
aInitiator- Non-nullinitiator party.aResponder- Non-nullresponder party.- Returns:
- The created non-
nullPMode ID.
-