public class IntegerEnum extends EnumDomain<Integer>
Constructor and Description |
---|
IntegerEnum(Collection<Integer> enums)
Creates a new IntegerEnum instance.
|
IntegerEnum(Iterable<String> enums)
Creates a new IntegerEnum instance.
|
Modifier and Type | Method and Description |
---|---|
protected DataValue<Integer> |
dataValueOf(Integer 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.
|
protected Integer |
valueOf(String value)
Returns the value represented by the given string.
|
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 IntegerEnum(Collection<Integer> enums)
protected Integer valueOf(String value)
valueOf
in class EnumDomain<Integer>
public void setFormat(String format)
setFormat
in class AbstractValueDomain<Integer>
public String getFormat()
getFormat
in interface ValueDomain<Integer>
getFormat
in class AbstractValueDomain<Integer>
protected DataValue<Integer> dataValueOf(Integer value)
DataValue
for the given value in this domain.dataValueOf
in class AbstractValueDomain<Integer>
Copyright © 2024 The Cornutum Project. All rights reserved.