Class AS4DuplicateItem

java.lang.Object
com.helger.phase4.duplicate.AS4DuplicateItem
All Implemented Interfaces:
com.helger.base.id.IHasID<String>, IAS4DuplicateItem, Serializable

public class AS4DuplicateItem extends Object implements IAS4DuplicateItem
This class represents a single "duplication check" item. It works for incoming and outgoing duplication checks
Author:
Martin Bayerl, Philip Helger
See Also:
  • Constructor Details

    • AS4DuplicateItem

      public AS4DuplicateItem(@Nonempty @NonNull @Nonempty String sMessageID, @Nullable String sProfileID, @Nullable String sPModeID)
    • AS4DuplicateItem

      public AS4DuplicateItem(@NonNull OffsetDateTime aDT, @Nonempty @NonNull @Nonempty String sMessageID, @Nullable String sProfileID, @Nullable String sPModeID)
  • Method Details

    • getDateTime

      public final @NonNull OffsetDateTime getDateTime()
      Specified by:
      getDateTime in interface IAS4DuplicateItem
      Returns:
      The date time when the entry was created. Never null.
    • getID

      @Nonempty public final @NonNull @Nonempty String getID()
      Specified by:
      getID in interface com.helger.base.id.IHasID<String>
      Returns:
      The message ID. Neither null nor empty.
      See Also:
    • getMessageID

      @Nonempty public final @NonNull @Nonempty String getMessageID()
      Specified by:
      getMessageID in interface IAS4DuplicateItem
      Returns:
      The message ID. Neither null nor empty.
    • getProfileID

      public final @Nullable String getProfileID()
      Specified by:
      getProfileID in interface IAS4DuplicateItem
      Returns:
      The AS4 profile ID in use. May be null.
    • getPModeID

      public final @Nullable String getPModeID()
      Specified by:
      getPModeID in interface IAS4DuplicateItem
      Returns:
      The AS4 PMode ID in use. May be null.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object