public class EmailEnum extends StringEnum
Constructor and Description |
---|
EmailEnum(Iterable<String> enums)
Creates a new EmailEnum instance.
|
EmailEnum(Iterable<String> enums,
Characters chars)
Creates a new EmailEnum instance.
|
Modifier and Type | Method and Description |
---|---|
static Iterable<String> |
assertEmails(Iterable<String> values)
Reports a failure if any of the given values is not a valid email string.
|
protected DataValue<String> |
dataValueOf(String value)
Returns a
DataValue for the given value in this domain. |
String |
getFormat()
Returns the format for values that belong to this domain.
|
void |
setFormat(String format)
Changes the format for values that belong to this domain.
|
valueOf
contains, getEnums, getTypes, toString, values
withFormat
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
arrayOf, arrayOf, arrayOf, contains, containsObject, getType, select, selectValue
public EmailEnum(Iterable<String> enums, Characters chars)
public void setFormat(String format)
setFormat
in class AbstractValueDomain<String>
public String getFormat()
getFormat
in interface ValueDomain<String>
getFormat
in class AbstractValueDomain<String>
protected DataValue<String> dataValueOf(String value)
DataValue
for the given value in this domain.dataValueOf
in class StringEnum
Copyright © 2024 The Cornutum Project. All rights reserved.