public class RealValueImpl extends NumberValueImpl implements RealValue
INVALID_NAME| Constructor and Description |
|---|
RealValueImpl(BigDecimal value) |
RealValueImpl(double value) |
asBagValue, asCollectionValue, asElement, asInteger, asIntegerValue, asMapValue, asNavigableObject, asObjectValue, asOrderedCollectionValue, asOrderedSetValue, asSequenceValue, asSetValue, asTupleValue, asUniqueCollectionValue, asUnlimitedNaturalValue, getTypeName, isInvalid, isUndefined, oclEquals, oclHashCode, toStringbyteValue, shortValueasBagValue, asCollectionValue, asElement, asInteger, asIntegerValue, asMapValue, asNavigableObject, asObjectValue, asOrderedCollectionValue, asOrderedSetValue, asSequenceValue, asSetValue, asTupleValue, asUniqueCollectionValue, asUnlimitedNaturalValue, isInvalid, isUndefined, toStringoclEquals, oclHashCodepublic RealValueImpl(double value)
public RealValueImpl(BigDecimal value)
public static void initStatics()
public RealValue addInteger(IntegerValue rightValue)
addInteger in interface RealValuepublic Double asDouble()
asDouble in interface ValueasDouble in class NumberValueImplpublic Object asEcoreObject(IdResolver idResolver, Class<?> instanceClass)
ValueA thrown exception for an invalid OCL value.
Java-null for a null OCL value
Objects for other things, List<?> for collections
asEcoreObject in interface ValueasEcoreObject in class NumberValueImplpublic RealValue asRealValue()
asRealValue in interface ValueasRealValue in class NumberValueImplpublic Object asUnboxedObject(IdResolver idResolver)
ValueA thrown exception for an invalid OCL value.
Java-null for a null OCL value
Objects for other things, Bag/Set/OrderedSet/List for collections
asUnboxedObject in interface Valuepublic BigDecimal bigDecimalValue()
bigDecimalValue in interface RealValuepublic BigInteger bigIntegerValue()
bigIntegerValue in interface RealValuepublic RealValue commutatedAdd(RealValue left)
commutatedAdd in interface RealValuepublic int commutatedCompareTo(ComparableValue<?> left)
ComparableValueThis is an internal method used to give righthand argument an opportunity to coerce its tyope to suit the lefthand. It is invoked when a direct compareTo is unable to compare left with this. Derived implementations must not invoke comoareTo in order to avoid an infinite commutation.
commutatedCompareTo in interface ComparableValue<NumberValue>public int commutatedCompareToInteger(IntegerValue left)
commutatedCompareToInteger in interface NumberValuepublic int commutatedCompareToReal(RealValue left)
commutatedCompareToReal in interface NumberValuepublic RealValue commutatedDivide(RealValue left)
commutatedDivide in interface RealValuepublic RealValue commutatedMultiply(RealValue left)
commutatedMultiply in interface RealValuepublic RealValue commutatedSubtract(RealValue left)
commutatedSubtract in interface RealValuepublic int compareTo(NumberValue right)
compareTo in interface Comparable<NumberValue>public RealValue divideInteger(IntegerValue right)
divideInteger in interface RealValuepublic RealValue divideReal(RealValue right)
divideReal in interface RealValuepublic double doubleValue()
doubleValue in interface RealValuedoubleValue in class Numberpublic float floatValue()
floatValue in class Numberpublic IntegerValue floor()
public Type getType(StandardLibrary standardLibrary)
public TypeId getTypeId()
Valuepublic IntegerValue isIntegerValue()
isIntegerValue in interface RealValuepublic UnlimitedNaturalValue isUnlimitedNaturalValue()
isUnlimitedNaturalValue in interface NumberValuepublic RealValue maxInteger(IntegerValue rightValue)
maxInteger in interface RealValuepublic RealValue minInteger(IntegerValue rightValue)
minInteger in interface RealValuepublic RealValue multiplyInteger(IntegerValue rightValue)
multiplyInteger in interface RealValuepublic RealValue multiplyReal(RealValue rightValue)
multiplyReal in interface RealValuepublic IntegerValue round()
public RealValue subtractInteger(IntegerValue rightValue)
subtractInteger in interface RealValuepublic RealValue subtractReal(RealValue rightValue)
subtractReal in interface RealValueCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.