Interface IPModeIDProvider

All Superinterfaces:
Serializable
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 extends Serializable
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 and responder ID with a minus sign
  • Method Summary

    Modifier and Type
    Method
    Description
    getPModeID(String sInitiatorID, String sResponderID)
    Create a PMode ID from initiator ID and responder ID.
  • Field Details

    • DEFAULT_DYNAMIC

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

    • getPModeID

      @Nonnull String getPModeID(@Nonnull @Nonempty String sInitiatorID, @Nonnull @Nonempty String sResponderID)
      Create a PMode ID from initiator ID and responder ID.
      Parameters:
      sInitiatorID - Non-null and non-empty initiator ID.
      sResponderID - Non-null and non-empty responder ID.
      Returns:
      The created non-null PMode ID.