public class ToAddress extends Object implements Comparable<ToAddress>
Modifier and Type | Class and Description |
---|---|
static class |
ToAddress.AddressType |
Constructor and Description |
---|
ToAddress(int priority,
boolean isWildcard,
String address)
Creates a new static ToAddress with the given values
|
ToAddress(ToAddress.AddressType addressType,
int priority,
boolean isWildcard)
Creates a new non-static ToAddress with the given values
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ToAddress o) |
boolean |
equals(Object o)
Checks equality based on the email address value
|
String |
getAddress() |
ToAddress.AddressType |
getAddressType() |
int |
getPriority() |
boolean |
isValid() |
boolean |
isWildcard() |
void |
populate(User user)
ToAddress types that require a User must be populated prior to use.
|
public ToAddress(ToAddress.AddressType addressType, int priority, boolean isWildcard)
addressType
- The AddressTypepriority
- The PriorityisWildcard
- Whether the address is a wildcard prioritypublic ToAddress(int priority, boolean isWildcard, String address)
priority
- The PriorityisWildcard
- Whether the address is a wildcard priorityaddress
- The static email addresspublic int compareTo(ToAddress o)
compareTo
in interface Comparable<ToAddress>
public boolean equals(Object o)
public String getAddress()
public ToAddress.AddressType getAddressType()
public int getPriority()
public boolean isValid()
public boolean isWildcard()
public void populate(User user)
user
- The user to retrieve the ToAddress for.Copyright © 2017 ECG. All rights reserved.