org.eclipse.ocl.examples.domain.values.impl
Class IntegerValueImpl
java.lang.Object
java.lang.Number
org.eclipse.ocl.examples.domain.values.impl.NumberValueImpl
org.eclipse.ocl.examples.domain.values.impl.IntegerValueImpl
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<RealValue>, IntegerValue, OCLValue, RealValue, Value
- Direct Known Subclasses:
- BigIntegerValueImpl, IntIntegerValueImpl, LongIntegerValueImpl
public abstract class IntegerValueImpl
- extends NumberValueImpl
- implements IntegerValue
- 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, asNavigableObject, asObjectValue, asOrderedCollectionValue, asOrderedSetValue, asSequenceValue, asSetValue, asTupleValue, asUniqueCollectionValue, getTypeName, isInvalid, isUndefined, oclEquals, oclHashCode, toString |
| Methods inherited from class java.lang.Number |
byteValue, doubleValue, floatValue, intValue, longValue, shortValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.ocl.examples.domain.values.IntegerValue |
addInteger, compareToInteger, divideInteger, divInteger, intValue, maxInteger, minInteger, modInteger, multiplyInteger, negate, subtractInteger |
| Methods inherited from interface org.eclipse.ocl.examples.domain.values.Value |
asBagValue, asCollectionValue, asDouble, asEcoreObject, asEcoreObject, asElement, asInteger, asNavigableObject, asObject, asObjectValue, asOrderedCollectionValue, asOrderedSetValue, asSequenceValue, asSetValue, asTupleValue, asUniqueCollectionValue, isInvalid, isUndefined, toString |
IntegerValueImpl
public IntegerValueImpl()
eStaticClass
protected org.eclipse.emf.ecore.EClass eStaticClass()
-
- Overrides:
eStaticClass in class NumberValueImpl
- Generated
addReal
@NonNull
public RealValue addReal(@NonNull
RealValue rightValue)
- Specified by:
addReal in interface RealValue
asIntegerValue
@NonNull
public IntegerValue asIntegerValue()
- Specified by:
asIntegerValue in interface Value- Overrides:
asIntegerValue in class NumberValueImpl
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
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>
compareToReal
public int compareToReal(@NonNull
RealValue o)
- Specified by:
compareToReal in interface RealValue
compareToUnlimited
public int compareToUnlimited(@NonNull
UnlimitedValue right)
- Specified by:
compareToUnlimited in interface RealValue
divUnlimited
@NonNull
public IntegerValue divUnlimited(@NonNull
UnlimitedValue right)
- Specified by:
divUnlimited in interface IntegerValue
divideReal
@NonNull
public RealValue divideReal(@NonNull
RealValue right)
- Specified by:
divideReal in interface RealValue
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
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
max
@NonNull
public RealValue max(@NonNull
RealValue rightValue)
- Specified by:
max 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
minReal
@NonNull
public RealValue minReal(@NonNull
RealValue right)
- Specified by:
minReal in interface RealValue
minUnlimited
@NonNull
public RealValue minUnlimited(@NonNull
UnlimitedValue rightValue)
- Specified by:
minUnlimited in interface RealValue
modUnlimited
@NonNull
public IntegerValue modUnlimited(@NonNull
UnlimitedValue right)
- Specified by:
modUnlimited in interface IntegerValue
multiplyReal
@NonNull
public RealValue multiplyReal(@NonNull
RealValue rightValue)
- Specified by:
multiplyReal in interface RealValue
round
@NonNull
public IntegerValue round()
- Specified by:
round in interface RealValue
subtractReal
@NonNull
public RealValue subtractReal(@NonNull
RealValue rightValue)
- Specified by:
subtractReal in interface RealValue