public class BasicRangeValueFactory extends ParticularValueFactory implements ValueFactory
This basic implementation only creates RangeIntegerValue instances if they start out with a known range. Otherwise, it still creates ParticularIntegerValue instances or UnknownIntegerValue instances, which by themselves never generalize to RangeIntegerValue instances.
referenceValueFactory
DOUBLE_VALUE, FLOAT_VALUE, INTEGER_VALUE, LONG_VALUE, REFERENCE_VALUE, UNKNOWN_VALUE
Constructor and Description |
---|
BasicRangeValueFactory()
Creates a new BasicRangeValueFactory.
|
BasicRangeValueFactory(ValueFactory arrayReferenceValueFactory,
ValueFactory referenceValueFactory)
Creates a new BasicRangeValueFactory that delegates to the given value factories for creating
reference values.
|
Modifier and Type | Method and Description |
---|---|
IntegerValue |
createIntegerValue(int min,
int max)
Creates a new IntegerValue with a given possible range.
|
createArrayReferenceValue, createArrayReferenceValue, createDoubleValue, createFloatValue, createIntegerValue, createLongValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValueForId, createReferenceValueForId, createReferenceValueForId, createReferenceValueNull
checkCreationLocation, checkReferenceValue, createDoubleValue, createFloatValue, createIntegerValue, createLongValue, createValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createArrayReferenceValue, createArrayReferenceValue, createDoubleValue, createDoubleValue, createFloatValue, createFloatValue, createIntegerValue, createIntegerValue, createLongValue, createLongValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValue, createReferenceValueForId, createReferenceValueForId, createReferenceValueForId, createReferenceValueNull, createValue
public BasicRangeValueFactory()
public BasicRangeValueFactory(ValueFactory arrayReferenceValueFactory, ValueFactory referenceValueFactory)
public IntegerValue createIntegerValue(int min, int max)
ValueFactory
createIntegerValue
in interface ValueFactory
createIntegerValue
in class BasicValueFactory