public abstract class AbstractValueDomain<T> extends Object implements ValueDomain<T>
ValueDomain
implementationsConstructor and Description |
---|
AbstractValueDomain() |
Modifier and Type | Method and Description |
---|---|
protected abstract DataValue<T> |
dataValueOf(T 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.
|
static <T,D extends AbstractValueDomain<T>> |
withFormat(D domain,
String format)
Applies the given format to the specified
ValueDomain . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
arrayOf, arrayOf, arrayOf, contains, contains, containsObject, getType, getTypes, select, selectValue, values
protected abstract DataValue<T> dataValueOf(T value)
DataValue
for the given value in this domain.public void setFormat(String format)
public String getFormat()
getFormat
in interface ValueDomain<T>
public static <T,D extends AbstractValueDomain<T>> D withFormat(D domain, String format)
ValueDomain
.Copyright © 2024 The Cornutum Project. All rights reserved.