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.

@FunctionalInterface public interface IPModeIDProvider
A nice little helper interface to dynamically create new PMode IDs based on Initiator ID and Responder ID.
Author:
Philip Helger
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final IPModeIDProvider
    The default implementation combines initiator ID value and responder ID value with a minus sign
  • Method Summary

    Modifier and Type
    Method
    Description
    getPModeID(PModeParty aInitiator, PModeParty aResponder)
    Create a PMode ID from initiator and responder.
  • Field Details

    • DEFAULT_DYNAMIC

      static final IPModeIDProvider DEFAULT_DYNAMIC
      The default implementation combines initiator ID value and responder ID value with a minus sign
  • Method Details

    • getPModeID

      @Nonnull String getPModeID(@Nonnull PModeParty aInitiator, @Nonnull PModeParty aResponder)
      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-null initiator party.
      aResponder - Non-null responder party.
      Returns:
      The created non-null PMode ID.