public class StringEnum extends EnumDomain<String>
Constructor and Description |
---|
StringEnum(Iterable<String> enums,
String format)
Creates a new StringEnum instance.
|
StringEnum(Iterable<String> enums,
String format,
Characters chars)
Creates a new StringEnum instance.
|
Modifier and Type | Method and Description |
---|---|
protected DataValue<String> |
dataValueOf(String value)
Returns a
DataValue for the given value in this domain. |
protected String |
valueOf(String value)
Returns the value represented by the given string.
|
contains, getEnums, getTypes, toString, values
getFormat, setFormat, withFormat
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
arrayOf, arrayOf, arrayOf, contains, containsObject, getType, select, selectValue
public StringEnum(Iterable<String> enums, String format)
public StringEnum(Iterable<String> enums, String format, Characters chars)
protected String valueOf(String value)
valueOf
in class EnumDomain<String>
protected DataValue<String> dataValueOf(String value)
DataValue
for the given value in this domain.dataValueOf
in class AbstractValueDomain<String>
Copyright © 2024 The Cornutum Project. All rights reserved.