public class UnlimitedValueImpl extends NumberValueImpl implements UnlimitedValue
IntegerValue.Accumulator
INVALID_NAME
Constructor and Description |
---|
UnlimitedValueImpl() |
asBagValue, asCollectionValue, asDouble, asEcoreObject, asElement, asInteger, asIntegerValue, asNavigableObject, asObjectValue, asOrderedSetValue, asSequenceValue, asSetValue, asTupleValue, asUniqueCollectionValue, getTypeName, isInvalid, isUndefined, oclEquals, oclHashCode, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asBagValue, asCollectionValue, asDouble, asEcoreObject, asElement, asInteger, asIntegerValue, asNavigableObject, asObjectValue, asOrderedSetValue, asSequenceValue, asSetValue, asTupleValue, asUniqueCollectionValue, isInvalid, isUndefined, toString
oclEquals, oclHashCode
protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass
in class NumberValueImpl
@NonNull public UnlimitedValueImpl abs()
@NonNull public IntegerValue addInteger(@NonNull IntegerValue right)
addInteger
in interface IntegerValue
addInteger
in interface RealValue
@NonNull public RealValue asRealValue()
asRealValue
in interface Value
asRealValue
in class NumberValueImpl
@NonNull public Value asUnlimitedNaturalValue()
asUnlimitedNaturalValue
in interface Value
asUnlimitedNaturalValue
in class NumberValueImpl
@NonNull public java.math.BigDecimal bigDecimalValue()
bigDecimalValue
in interface RealValue
@NonNull public java.math.BigInteger bigIntegerValue()
bigIntegerValue
in interface RealValue
@NonNull public RealValue commutatedAdd(@NonNull RealValue left)
commutatedAdd
in interface RealValue
@NonNull public IntegerValue commutatedDiv(@NonNull IntegerValue left)
commutatedDiv
in interface IntegerValue
@NonNull public RealValue commutatedDivide(@NonNull RealValue left)
commutatedDivide
in interface RealValue
@NonNull public IntegerValue commutatedMod(@NonNull IntegerValue left)
commutatedMod
in interface IntegerValue
@NonNull public RealValue commutatedMultiply(@NonNull RealValue left)
commutatedMultiply
in interface RealValue
@NonNull public RealValue commutatedSubtract(@NonNull RealValue left)
commutatedSubtract
in interface RealValue
public int compareTo(RealValue left)
compareTo
in interface java.lang.Comparable<RealValue>
public int compareToInteger(@NonNull IntegerValue right)
compareToInteger
in interface IntegerValue
compareToInteger
in interface RealValue
public int compareToReal(@NonNull RealValue right)
compareToReal
in interface RealValue
public int compareToUnlimited(@NonNull UnlimitedValue right)
compareToUnlimited
in interface RealValue
@NonNull public IntegerValue divInteger(@NonNull IntegerValue right)
divInteger
in interface IntegerValue
@NonNull public IntegerValue divUnlimited(@NonNull UnlimitedValue right)
divUnlimited
in interface IntegerValue
@NonNull public RealValue divideInteger(@NonNull IntegerValue right)
divideInteger
in interface IntegerValue
divideInteger
in interface RealValue
@NonNull public RealValue divideReal(@NonNull RealValue right)
divideReal
in interface RealValue
public double doubleValue()
doubleValue
in interface RealValue
doubleValue
in class java.lang.Number
public float floatValue()
floatValue
in class java.lang.Number
@NonNull public IntegerValue floor()
@NonNull public DomainType getType(@NonNull DomainStandardLibrary standardLibrary)
@NonNull public TypeId getTypeId()
Value
public int intValue()
intValue
in interface IntegerValue
intValue
in class java.lang.Number
@Nullable public IntegerValue isIntegerValue()
isIntegerValue
in interface RealValue
public boolean isUnlimited()
isUnlimited
in interface RealValue
public boolean isUnlimitedNatural()
isUnlimitedNatural
in interface IntegerValue
public long longValue()
longValue
in class java.lang.Number
@NonNull public IntegerValue maxInteger(@NonNull IntegerValue right)
maxInteger
in interface IntegerValue
maxInteger
in interface RealValue
@NonNull public RealValue maxUnlimited(@NonNull UnlimitedValue rightValue)
maxUnlimited
in interface RealValue
@NonNull public RealValue minUnlimited(@NonNull UnlimitedValue rightValue)
minUnlimited
in interface RealValue
@NonNull public IntegerValue minInteger(@NonNull IntegerValue right)
minInteger
in interface IntegerValue
minInteger
in interface RealValue
@NonNull public IntegerValue modInteger(@NonNull IntegerValue right)
modInteger
in interface IntegerValue
@NonNull public IntegerValue modUnlimited(@NonNull UnlimitedValue right)
modUnlimited
in interface IntegerValue
@NonNull public IntegerValue multiplyInteger(@NonNull IntegerValue right)
multiplyInteger
in interface IntegerValue
multiplyInteger
in interface RealValue
@NonNull public RealValue multiplyReal(@NonNull RealValue right)
multiplyReal
in interface RealValue
@NonNull public UnlimitedValue negate()
negate
in interface IntegerValue
negate
in interface RealValue
negate
in interface UnlimitedValue
@NonNull public IntegerValue round()
@NonNull public IntegerValue subtractInteger(@NonNull IntegerValue right)
subtractInteger
in interface IntegerValue
subtractInteger
in interface RealValue
@NonNull public RealValue subtractReal(@NonNull RealValue right)
subtractReal
in interface RealValue
public java.lang.String toString()
toString
in class java.lang.Object