Package ru.bgcrm.model.param
Class ParameterEmailValue
java.lang.Object
ru.bgcrm.model.param.ParameterEmailValue
-
Constructor Summary
ConstructorsConstructorDescriptionParameterEmailValue(String value) Public constructorParameterEmailValue(String value, String comment) Public constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleangetValue()inthashCode()static final List<ParameterEmailValue> Parse list of email values out of a comma-separated stringvoidsetComment(String comment) Setter for a display namevoidSettertoString()static final StringtoString(Collection<ParameterEmailValue> values) Unified representation 'email' parameter values as a string The logic is duplicated ininvalid input: 'for process queues. @param values the parameter values @return the comma-separated string with {@link #toString()} generated parts'
-
Constructor Details
-
ParameterEmailValue
public ParameterEmailValue() -
ParameterEmailValue
Public constructor- Parameters:
value- the email value
-
ParameterEmailValue
Public constructor- Parameters:
value- the email valuecomment- the display name
-
-
Method Details
-
of
Parse list of email values out of a comma-separated string- Parameters:
values- the source string- Returns:
- the list of values
-
toString
Unified representation 'email' parameter values as a string The logic is duplicated ininvalid input: 'for process queues. @param values the parameter values @return the comma-separated string with {@link #toString()} generated parts' -
setValue
Setter- Parameters:
value- email value- Throws:
BGMessageException- when not correct email value is being set
-
getValue
- Returns:
- email value
-
getUsername
- Returns:
- part of email before
@
-
getDomain
- Returns:
- part of email after
@
-
getComment
- Returns:
- display name
-
setComment
Setter for a display name- Parameters:
comment- the title
-
toString
-
hashCode
public int hashCode() -
equals
-