|
|||||
| Previous Next | |||||
The Int type is the Integer type with a 32 bits (4 bytes) precision, that is values from -2147483648 to 2147483647. Literals have the same structure as Integer ones.
| Operation Summary | |
Int
|
+ This word. |
Int
|
+(Int rhs)
The value of the addition of this word and rhs. |
Int
|
&(Int rhs)
The bitwise and of this word and rhs. |
Int
|
~ The bitwise negation of this word. |
Int
|
|(Int rhs)
The bitwise inclusive or of this word and rhs. |
Int
|
^(Int rhs)
The bitwise exclusive or of this word and rhs. |
Real
|
/(Int rhs)
The value of this word divided by rhs. |
Boolean
|
=(Int rhs)
True if this word is equal to rhs. |
Boolean
|
>=(Int rhs)
True if this word if greater than or equal to rhs. |
Boolean
|
>(Int rhs)
True if this word is greater than rhs. |
Boolean
|
<=(Int rhs)
True if this word is less than or equal to rhs. |
Boolean
|
<(Int rhs)
True if this word is less than rhs. |
Int
|
*(Int rhs)
The value of the multiplication of this word and rhs. |
Boolean
|
<>(Int rhs)
True if this word is not equal to rhs. |
Int
|
<<(Integer shift)
This word whose bits has been shifted shift times left. |
Int
|
>>(Integer shift)
This word whose bits has been shifted shift times right. |
Int
|
- The opposite of this word. |
Int
|
-(Int rhs)
The value of the substraction of rhs from this word. |
Int
|
abs The absolute value of this word. |
Int
|
div(Int rhs)
The number of times that rhs fits completely within this word. |
Int
|
floor This word. |
Int
|
max(Int rhs)
The maximum of this word and rhs. |
Int
|
min(Int rhs)
The minimum of this word and rhs. |
Int
|
mod(Integer rhs)
The result is this word modulo rhs. |
Int
|
round This word. |
String
|
toString A representative character string of this word. |
| Operations inherited from type Long |
+, &,
|, ^, /,
=, >=, >, <=,
<, *, <>,
-, div, max,
min
|
| Operations inherited from type Integer |
+, /,
=, >=,
>, <=,
<, *,
<>, -,
div, max,
min
|
| Operations inherited from type Real |
+, /, =,
>=, >,
<=, <,
*, <>,
-, max, min,
random
|
| Operations inherited from type OclAny |
=, <>,
oclAsType, oclIsKindOf,
oclIsTypeOf
|
| Operations inherited from type Float |
+, /,
=, >=,
>, <=,
<, *,
<>, -,
max, min
|
| Operations inherited from type Double |
+, /,
=, >=,
>, <=,
<, *,
<>, -,
max, min
|
| Operations Detail |
public Int floor
floor in type Longpublic Int round
round in type
Longpublic Boolean =(Int rhs)
public Boolean <>(Int rhs)
public Int +
+ in type Longpublic Int -
-
in type Longpublic Int +(Int rhs)
public Int -(Int rhs)
public Int *(Int rhs)
public Real /(Int rhs)
public Int abs
abs in type Longpublic Int div(Int rhs)
public Int mod(Integer rhs)
mod in type Longpublic Int max(Int rhs)
public Int min(Int rhs)
public Int ~
~
in type Longpublic Int &(Int rhs)
public Int |(Int rhs)
public Int ^(Int rhs)
public Int <<(Integer shift)
<< in type
Longpublic Int >>(Integer shift)
>> in type
Longpublic Boolean <(Int rhs)
public Boolean >(Int rhs)
public Boolean <=(Int rhs)
public Boolean >=(Int rhs)
public String toString
toString in type Long
|
|||||
| Previous Next | |||||