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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPModeAddressList(Iterable<? extends String> aAddresses) PModeAddressList(String... aAddresses) -
Method Summary
Modifier and TypeMethodDescriptionfinal com.helger.commons.collection.impl.ICommonsList<String>static PModeAddressListcreateFromString(String sAddressString) Create a newPModeAddressListbased on a comma separated String.booleanfinal com.helger.commons.collection.impl.ICommonsList<String>getClone()inthashCode()toString()
-
Field Details
-
ADDRESS_SEPARATOR
public static final char ADDRESS_SEPARATOR- See Also:
-
-
Constructor Details
-
PModeAddressList
public PModeAddressList() -
PModeAddressList
-
PModeAddressList
-
-
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
- Returns:
- All addresses as a single string, separated by a "comma char".
Never
null.
-
getClone
- Specified by:
getClonein interfacecom.helger.commons.lang.ICloneable<PModeAddressList>
-
equals
-
hashCode
public int hashCode() -
toString
-
createFromString
Create a newPModeAddressListbased on a comma separated String.- Parameters:
sAddressString- The address string to be split. May benull.- Returns:
- A non-
nullbut maybe empty list.
-