public class MultiTypeDomain extends AbstractValueDomain<Object>
Constructor and Description |
---|
MultiTypeDomain(Characters chars,
DataValue.Type... types)
Creates a new MultiTypeDomain instance.
|
MultiTypeDomain(DataValue.Type... types)
Creates a new MultiTypeDomain instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Object value)
Returns true if the given value belongs to this domain.
|
protected DataValue<Object> |
dataValueOf(Object value)
Returns a
DataValue for the given value in this domain. |
Characters |
getCharacters()
Returns the set of characters allowed in values for this domain.
|
DataValue.Type[] |
getTypes()
Return the type(s) of values that belong to this domain.
|
String |
toString() |
Stream<DataValue<Object>> |
values(ResolverContext context)
Returns a random sequence of values from this domain.
|
getFormat, setFormat, withFormat
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
arrayOf, arrayOf, arrayOf, contains, containsObject, getType, select, selectValue
public MultiTypeDomain(DataValue.Type... types)
public MultiTypeDomain(Characters chars, DataValue.Type... types)
public Characters getCharacters()
public Stream<DataValue<Object>> values(ResolverContext context)
protected DataValue<Object> dataValueOf(Object value)
DataValue
for the given value in this domain.dataValueOf
in class AbstractValueDomain<Object>
public boolean contains(Object value)
public DataValue.Type[] getTypes()
Copyright © 2024 The Cornutum Project. All rights reserved.