public class RangeValueFactory extends BasicRangeValueFactory implements ValueFactory
This implementation creates RangeIntegerValue instances in all IntegerValue factory methods. This way, the RangeIntegerValue instances can generalize further to other RangeIntegerValue instances, even if they start out as known particular values.
referenceValueFactory
DOUBLE_VALUE, FLOAT_VALUE, INTEGER_VALUE, LONG_VALUE, REFERENCE_VALUE, UNKNOWN_VALUE
Constructor and Description |
---|
RangeValueFactory()
Creates a new RangeValueFactory.
|
RangeValueFactory(ValueFactory arrayReferenceValueFactory,
ValueFactory referenceValueFactory)
Creates a new RangeValueFactory that delegates to the given value factories for creating
reference values.
|
Modifier and Type | Method and Description |
---|---|
IntegerValue |
createIntegerValue()
Creates a new IntegerValue with an undefined value.
|
IntegerValue |
createIntegerValue(int value)
Creates a new IntegerValue with a given particular value.
|
IntegerValue |
createIntegerValue(int min,
int max)
Creates a new IntegerValue with a given possible range.
|
createArrayReferenceValue, createArrayReferenceValue, createDoubleValue, createFloatValue, createLongValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValueForId, createReferenceValueForId, createReferenceValueForId, createReferenceValueNull
checkCreationLocation, checkReferenceValue, createDoubleValue, createFloatValue, createLongValue, createValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createArrayReferenceValue, createArrayReferenceValue, createDoubleValue, createDoubleValue, createFloatValue, createFloatValue, createLongValue, createLongValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValueForId, createReferenceValueForId, createReferenceValueForId, createReferenceValueNull, createValue
public RangeValueFactory()
public RangeValueFactory(ValueFactory arrayReferenceValueFactory, ValueFactory referenceValueFactory)
public IntegerValue createIntegerValue()
ValueFactory
createIntegerValue
in interface ValueFactory
createIntegerValue
in class BasicValueFactory
public IntegerValue createIntegerValue(int value)
ValueFactory
createIntegerValue
in interface ValueFactory
createIntegerValue
in class ParticularValueFactory
public IntegerValue createIntegerValue(int min, int max)
ValueFactory
createIntegerValue
in interface ValueFactory
createIntegerValue
in class BasicRangeValueFactory