public final class ParticularDoubleValue extends SpecificDoubleValue
DoubleValue represents a particular double value.ALWAYS, MAYBE, NEVER, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INSTRUCTION_OFFSET, TYPE_INTEGER, TYPE_LONG, TYPE_REFERENCE, TYPE_TOP, TYPE_UNKNOWN| Constructor and Description |
|---|
ParticularDoubleValue(double value)
Creates a new particular double value.
|
| Modifier and Type | Method and Description |
|---|---|
DoubleValue |
add(DoubleValue other)
Returns the sum of this DoubleValue and the given DoubleValue.
|
DoubleValue |
add(ParticularDoubleValue other)
Returns the sum of this DoubleValue and the given ParticularDoubleValue.
|
IntegerValue |
compare(DoubleValue other)
Returns an IntegerValue with value -1, 0, or 1, if this DoubleValue is
less than, equal to, or greater than the given DoubleValue, respectively.
|
IntegerValue |
compare(ParticularDoubleValue other)
Returns an IntegerValue with value -1, 0, or 1, if this DoubleValue is
less than, equal to, or greater than the given ParticularDoubleValue,
respectively.
|
FloatValue |
convertToFloat()
Converts this DoubleValue to a FloatValue.
|
IntegerValue |
convertToInteger()
Converts this DoubleValue to an IntegerValue.
|
LongValue |
convertToLong()
Converts this DoubleValue to a LongValue.
|
DoubleValue |
divide(DoubleValue other)
Returns the quotient of this DoubleValue and the given DoubleValue.
|
DoubleValue |
divide(ParticularDoubleValue other)
Returns the quotient of this DoubleValue and the given ParticularDoubleValue.
|
DoubleValue |
divideOf(DoubleValue other)
Returns the quotient of the given DoubleValue and this DoubleValue.
|
DoubleValue |
divideOf(ParticularDoubleValue other)
Returns the quotient of the given ParticularDoubleValue and this
DoubleValue.
|
boolean |
equals(java.lang.Object object) |
DoubleValue |
generalize(DoubleValue other)
Returns the generalization of this DoubleValue and the given other
DoubleValue.
|
DoubleValue |
generalize(ParticularDoubleValue other)
Returns the generalization of this DoubleValue and the given other
ParticularDoubleValue.
|
int |
hashCode() |
boolean |
isParticular()
Returns whether this Value represents a single particular (known)
value.
|
DoubleValue |
multiply(DoubleValue other)
Returns the product of this DoubleValue and the given DoubleValue.
|
DoubleValue |
multiply(ParticularDoubleValue other)
Returns the product of this DoubleValue and the given ParticularDoubleValue.
|
DoubleValue |
negate()
Returns the negated value of this DoubleValue.
|
DoubleValue |
remainder(DoubleValue other)
Returns the remainder of this DoubleValue divided by the given DoubleValue.
|
DoubleValue |
remainder(ParticularDoubleValue other)
Returns the remainder of this DoubleValue divided by the given
ParticularDoubleValue.
|
DoubleValue |
remainderOf(DoubleValue other)
Returns the remainder of the given DoubleValue divided by this DoubleValue.
|
DoubleValue |
remainderOf(ParticularDoubleValue other)
Returns the remainder of the given ParticularDoubleValue and this
DoubleValue.
|
DoubleValue |
subtract(DoubleValue other)
Returns the difference of this DoubleValue and the given DoubleValue.
|
DoubleValue |
subtract(ParticularDoubleValue other)
Returns the difference of this DoubleValue and the given ParticularDoubleValue.
|
DoubleValue |
subtractFrom(DoubleValue other)
Returns the difference of the given DoubleValue and this DoubleValue.
|
DoubleValue |
subtractFrom(ParticularDoubleValue other)
Returns the difference of the given ParticularDoubleValue and this DoubleValue.
|
java.lang.String |
toString() |
double |
value()
Returns the specific double value, if applicable.
|
add, compare, divide, divideOf, generalize, isSpecific, multiply, remainder, remainderOf, subtract, subtractFromcompareReverse, compareReverse, compareReverse, computationalType, doubleValue, generalize, internalTypecategory2Value, isCategory2category1Value, copyIfMutable, floatValue, instructionOffsetValue, integerValue, longValue, referenceValuepublic ParticularDoubleValue(double value)
public double value()
DoubleValuevalue in class DoubleValuepublic DoubleValue negate()
DoubleValuenegate in class SpecificDoubleValuepublic IntegerValue convertToInteger()
DoubleValueconvertToInteger in class SpecificDoubleValuepublic LongValue convertToLong()
DoubleValueconvertToLong in class SpecificDoubleValuepublic FloatValue convertToFloat()
DoubleValueconvertToFloat in class SpecificDoubleValuepublic DoubleValue generalize(DoubleValue other)
DoubleValuegeneralize in class SpecificDoubleValuepublic DoubleValue add(DoubleValue other)
DoubleValueadd in class SpecificDoubleValuepublic DoubleValue subtract(DoubleValue other)
DoubleValuesubtract in class SpecificDoubleValuepublic DoubleValue subtractFrom(DoubleValue other)
DoubleValuesubtractFrom in class SpecificDoubleValuepublic DoubleValue multiply(DoubleValue other)
DoubleValuemultiply in class SpecificDoubleValuepublic DoubleValue divide(DoubleValue other)
DoubleValuedivide in class SpecificDoubleValuepublic DoubleValue divideOf(DoubleValue other)
DoubleValuedivideOf in class SpecificDoubleValuepublic DoubleValue remainder(DoubleValue other)
DoubleValueremainder in class SpecificDoubleValuepublic DoubleValue remainderOf(DoubleValue other)
DoubleValueremainderOf in class SpecificDoubleValuepublic IntegerValue compare(DoubleValue other)
DoubleValuecompare in class SpecificDoubleValuepublic DoubleValue generalize(ParticularDoubleValue other)
DoubleValuegeneralize in class DoubleValuepublic DoubleValue add(ParticularDoubleValue other)
DoubleValueadd in class DoubleValuepublic DoubleValue subtract(ParticularDoubleValue other)
DoubleValuesubtract in class DoubleValuepublic DoubleValue subtractFrom(ParticularDoubleValue other)
DoubleValuesubtractFrom in class DoubleValuepublic DoubleValue multiply(ParticularDoubleValue other)
DoubleValuemultiply in class DoubleValuepublic DoubleValue divide(ParticularDoubleValue other)
DoubleValuedivide in class DoubleValuepublic DoubleValue divideOf(ParticularDoubleValue other)
DoubleValuedivideOf in class DoubleValuepublic DoubleValue remainder(ParticularDoubleValue other)
DoubleValueremainder in class DoubleValuepublic DoubleValue remainderOf(ParticularDoubleValue other)
DoubleValueremainderOf in class DoubleValuepublic IntegerValue compare(ParticularDoubleValue other)
DoubleValuecompare in class DoubleValuepublic boolean isParticular()
ValueisParticular in class Valuepublic boolean equals(java.lang.Object object)
equals in class SpecificDoubleValuepublic int hashCode()
hashCode in class SpecificDoubleValuepublic java.lang.String toString()
toString in class java.lang.Object