Class UnlimitedNatural
java.lang.Object
java.lang.Number
com.nomagic.magicdraw.simulation.datatypes.UnlimitedNatural
- All Implemented Interfaces:
Serializable
The Class UnlimitedNatural.
- See Also:
-
Constructor Summary
ConstructorDescriptionoperation UnlimitedNatural.UnlimitedNatural
(int naturalValue) operation UnlimitedNatural. -
Method Summary
Modifier and TypeMethodDescriptiondouble
float
int
get naturalValue.int
intValue()
long
void
setNaturalValue
(int value) set naturalValue.toString()
Methods inherited from class java.lang.Number
byteValue, shortValue
-
Constructor Details
-
UnlimitedNatural
public UnlimitedNatural(int naturalValue) operation UnlimitedNatural.- Parameters:
naturalValue
- the natural value
-
UnlimitedNatural
public UnlimitedNatural()operation UnlimitedNatural.
-
-
Method Details
-
setNaturalValue
public void setNaturalValue(int value) set naturalValue.- Parameters:
value
- a value
-
getNaturalValue
public int getNaturalValue()get naturalValue.- Returns:
- naturalValue
-
toString
-
intValue
public int intValue() -
longValue
public long longValue() -
floatValue
public float floatValue()- Specified by:
floatValue
in classNumber
-
doubleValue
public double doubleValue()- Specified by:
doubleValue
in classNumber
-