public class LengthDomain extends AbstractValueDomain<Integer>
Constructor and Description |
---|
LengthDomain(Integer length)
Creates a new LengthDomain instance.
|
LengthDomain(int min,
int max)
Creates a new LengthDomain instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Integer value)
Returns true if the given value belongs to this domain.
|
protected DataValue<Integer> |
dataValueOf(Integer value)
Returns a
DataValue for the given value in this domain. |
int |
getMax()
Returns the maximum value for this domain.
|
int |
getMin()
Returns the minimum value for this domain.
|
DataValue.Type[] |
getTypes()
Return the type(s) of values that belong to this domain.
|
String |
toString() |
Stream<DataValue<Integer>> |
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 LengthDomain(Integer length)
public LengthDomain(int min, int max)
public int getMin()
public int getMax()
public Stream<DataValue<Integer>> values(ResolverContext context)
public boolean contains(Integer value)
public DataValue.Type[] getTypes()
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.