Class PModeAddressList

java.lang.Object
com.helger.phase4.model.pmode.leg.PModeAddressList
All Implemented Interfaces:
com.helger.commons.lang.ICloneable<PModeAddressList>, Serializable

@NotThreadSafe @MustImplementEqualsAndHashcode public class PModeAddressList extends Object implements Serializable, com.helger.commons.lang.ICloneable<PModeAddressList>
List of addresses in a PMode
Author:
Philip Helger
See Also:
  • Field Details

  • Constructor Details

    • PModeAddressList

      public PModeAddressList()
    • PModeAddressList

      public PModeAddressList(@Nullable String... aAddresses)
    • PModeAddressList

      public PModeAddressList(@Nullable Iterable<? extends String> aAddresses)
  • Method Details

    • addresses

      @Nonnull @ReturnsMutableObject public final com.helger.commons.collection.impl.ICommonsList<String> addresses()
      Returns:
      A mutable list of all contained addresses. Never null.
    • getAllAddresses

      @Nonnull @ReturnsMutableCopy public final com.helger.commons.collection.impl.ICommonsList<String> getAllAddresses()
      Returns:
      A copy of all contained addresses. Never null.
    • getAsString

      @Nonnull public String getAsString()
      Returns:
      All addresses as a single string, separated by a "comma char". Never null.
    • getClone

      @Nonnull @ReturnsMutableCopy public PModeAddressList getClone()
      Specified by:
      getClone in interface com.helger.commons.lang.ICloneable<PModeAddressList>
    • 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
    • createFromString

      @Nonnull public static PModeAddressList createFromString(@Nullable String sAddressString)
      Create a new PModeAddressList based on a comma separated String.
      Parameters:
      sAddressString - The address string to be split. May be null.
      Returns:
      A non-null but maybe empty list.