org.eclipse.ocl.examples.domain.values.impl
Class UnlimitedValueImpl
java.lang.Object
java.lang.Number
org.eclipse.ocl.examples.domain.values.impl.NumberValueImpl
org.eclipse.ocl.examples.domain.values.impl.UnlimitedValueImpl
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<RealValue>, IntegerValue, OCLValue, RealValue, UnlimitedValue, Value
public class UnlimitedValueImpl
- extends NumberValueImpl
- implements UnlimitedValue
- See Also:
- Serialized Form
- Generated
- NOT
| Fields inherited from interface org.eclipse.ocl.examples.domain.values.Value |
INVALID_NAME |
| Methods inherited from class org.eclipse.ocl.examples.domain.values.impl.NumberValueImpl |
asBagValue, asCollectionValue, asDouble, asEcoreObject, asElement, asInteger, asIntegerValue, asNavigableObject, asObjectValue, asOrderedCollectionValue, asOrderedSetValue, asSequenceValue, asSetValue, asTupleValue, asUniqueCollectionValue, getTypeName, isInvalid, isUndefined, oclEquals, oclHashCode, toString |
| Methods inherited from class java.lang.Number |
byteValue, shortValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.ocl.examples.domain.values.Value |
asBagValue, asCollectionValue, asDouble, asEcoreObject, asElement, asInteger, asIntegerValue, asNavigableObject, asObjectValue, asOrderedCollectionValue, asOrderedSetValue, asSequenceValue, asSetValue, asTupleValue, asUniqueCollectionValue, isInvalid, isUndefined, toString |
UnlimitedValueImpl
public UnlimitedValueImpl()
eStaticClass
protected org.eclipse.emf.ecore.EClass eStaticClass()
-
- Overrides:
eStaticClass in class NumberValueImpl
- Generated
abs
@NonNull
public UnlimitedValueImpl abs()
- Specified by:
abs in interface RealValue
addInteger
@NonNull
public IntegerValue addInteger(@NonNull
IntegerValue right)
- Specified by:
addInteger in interface IntegerValue- Specified by:
addInteger in interface RealValue
addReal
@NonNull
public RealValue addReal(@NonNull
RealValue right)
- Specified by:
addReal in interface RealValue
asEcoreObject
@NonNull
public java.lang.Object asEcoreObject(@NonNull
IdResolver idResolver)
- Specified by:
asEcoreObject in interface Value
asNumber
@NonNull
public java.lang.Number asNumber()
- Specified by:
asNumber in interface RealValue
asObject
@NonNull
public java.lang.Object asObject()
- Specified by:
asObject in interface Value
asRealValue
@NonNull
public RealValue asRealValue()
- Specified by:
asRealValue in interface Value- Overrides:
asRealValue in class NumberValueImpl
asUnlimitedNaturalValue
@NonNull
public Value asUnlimitedNaturalValue()
- Specified by:
asUnlimitedNaturalValue in interface Value- Overrides:
asUnlimitedNaturalValue in class NumberValueImpl
bigDecimalValue
@NonNull
public java.math.BigDecimal bigDecimalValue()
- Specified by:
bigDecimalValue in interface RealValue
bigIntegerValue
@NonNull
public java.math.BigInteger bigIntegerValue()
- Specified by:
bigIntegerValue in interface RealValue
commutatedAdd
@NonNull
public RealValue commutatedAdd(@NonNull
RealValue left)
- Specified by:
commutatedAdd in interface RealValue
commutatedDiv
@NonNull
public IntegerValue commutatedDiv(@NonNull
IntegerValue left)
- Specified by:
commutatedDiv in interface IntegerValue
commutatedDivide
@NonNull
public RealValue commutatedDivide(@NonNull
RealValue left)
- Specified by:
commutatedDivide in interface RealValue
commutatedMod
@NonNull
public IntegerValue commutatedMod(@NonNull
IntegerValue left)
- Specified by:
commutatedMod in interface IntegerValue
commutatedMultiply
@NonNull
public RealValue commutatedMultiply(@NonNull
RealValue left)
- Specified by:
commutatedMultiply in interface RealValue
commutatedSubtract
@NonNull
public RealValue commutatedSubtract(@NonNull
RealValue left)
- Specified by:
commutatedSubtract in interface RealValue
compareTo
public int compareTo(RealValue left)
- Specified by:
compareTo in interface java.lang.Comparable<RealValue>
compareToInteger
public int compareToInteger(@NonNull
IntegerValue right)
- Specified by:
compareToInteger in interface IntegerValue- Specified by:
compareToInteger in interface RealValue
compareToReal
public int compareToReal(@NonNull
RealValue right)
- Specified by:
compareToReal in interface RealValue
compareToUnlimited
public int compareToUnlimited(@NonNull
UnlimitedValue right)
- Specified by:
compareToUnlimited in interface RealValue
divInteger
@NonNull
public IntegerValue divInteger(@NonNull
IntegerValue right)
- Specified by:
divInteger in interface IntegerValue
divUnlimited
@NonNull
public IntegerValue divUnlimited(@NonNull
UnlimitedValue right)
- Specified by:
divUnlimited in interface IntegerValue
divideInteger
@NonNull
public RealValue divideInteger(@NonNull
IntegerValue right)
- Specified by:
divideInteger in interface IntegerValue- Specified by:
divideInteger in interface RealValue
divideReal
@NonNull
public RealValue divideReal(@NonNull
RealValue right)
- Specified by:
divideReal in interface RealValue
doubleValue
public double doubleValue()
- Specified by:
doubleValue in interface RealValue- Specified by:
doubleValue in class java.lang.Number
floatValue
public float floatValue()
- Specified by:
floatValue in class java.lang.Number
floor
@NonNull
public IntegerValue floor()
- Specified by:
floor in interface RealValue
getType
@NonNull
public DomainType getType(@NonNull
DomainStandardLibrary standardLibrary)
getTypeId
@NonNull
public TypeId getTypeId()
- Description copied from interface:
Value
- Return the type of this value determined from its construction context. In the case of collections
this may differ from the actual type.
- Specified by:
getTypeId in interface Value
intValue
public int intValue()
- Specified by:
intValue in interface IntegerValue- Specified by:
intValue in class java.lang.Number
isIntegerValue
@Nullable
public IntegerValue isIntegerValue()
- Specified by:
isIntegerValue in interface RealValue
isUnlimited
public boolean isUnlimited()
- Specified by:
isUnlimited in interface RealValue
isUnlimitedNatural
public boolean isUnlimitedNatural()
- Specified by:
isUnlimitedNatural in interface IntegerValue
longValue
public long longValue()
- Specified by:
longValue in class java.lang.Number
max
@NonNull
public RealValue max(@NonNull
RealValue rightValue)
- Specified by:
max in interface RealValue
maxInteger
@NonNull
public IntegerValue maxInteger(@NonNull
IntegerValue right)
- Specified by:
maxInteger in interface IntegerValue- Specified by:
maxInteger in interface RealValue
maxReal
@NonNull
public RealValue maxReal(@NonNull
RealValue right)
- Specified by:
maxReal in interface RealValue
maxUnlimited
@NonNull
public RealValue maxUnlimited(@NonNull
UnlimitedValue rightValue)
- Specified by:
maxUnlimited in interface RealValue
min
@NonNull
public RealValue min(@NonNull
RealValue rightValue)
- Specified by:
min in interface RealValue
minUnlimited
@NonNull
public RealValue minUnlimited(@NonNull
UnlimitedValue rightValue)
- Specified by:
minUnlimited in interface RealValue
minInteger
@NonNull
public IntegerValue minInteger(@NonNull
IntegerValue right)
- Specified by:
minInteger in interface IntegerValue- Specified by:
minInteger in interface RealValue
minReal
@NonNull
public RealValue minReal(@NonNull
RealValue right)
- Specified by:
minReal in interface RealValue
modInteger
@NonNull
public IntegerValue modInteger(@NonNull
IntegerValue right)
- Specified by:
modInteger in interface IntegerValue
modUnlimited
@NonNull
public IntegerValue modUnlimited(@NonNull
UnlimitedValue right)
- Specified by:
modUnlimited in interface IntegerValue
multiplyInteger
@NonNull
public IntegerValue multiplyInteger(@NonNull
IntegerValue right)
- Specified by:
multiplyInteger in interface IntegerValue- Specified by:
multiplyInteger in interface RealValue
multiplyReal
@NonNull
public RealValue multiplyReal(@NonNull
RealValue right)
- Specified by:
multiplyReal in interface RealValue
negate
@NonNull
public UnlimitedValue negate()
- Specified by:
negate in interface IntegerValue- Specified by:
negate in interface RealValue- Specified by:
negate in interface UnlimitedValue
round
@NonNull
public IntegerValue round()
- Specified by:
round in interface RealValue
signum
public int signum()
- Specified by:
signum in interface RealValue
subtractInteger
@NonNull
public IntegerValue subtractInteger(@NonNull
IntegerValue right)
- Specified by:
subtractInteger in interface IntegerValue- Specified by:
subtractInteger in interface RealValue
subtractReal
@NonNull
public RealValue subtractReal(@NonNull
RealValue right)
- Specified by:
subtractReal in interface RealValue
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object