Type Int

All Supertypes:
Double, Float, Integer, Long, OclAny, Real
All Subtypes:
Byte, Short

Predefined type Int
extends Long

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

floor

 public Int floor
This word.
Overloads:
floor in type Long

round

 public Int round
This word.
Overloads:
round in type Long

=

 public Boolean =(Int rhs)
True if this word is equal to rhs.

<>

 public Boolean <>(Int rhs)
True if this word is not equal to rhs.

+

 public Int +
This word.
Overloads:
+ in type Long

-

 public Int -
The opposite of this word.
Overloads:
- in type Long

+

 public Int +(Int rhs)
The value of the addition of this word and rhs.

-

 public Int -(Int rhs)
The value of the substraction of rhs from this word.

*

 public Int *(Int rhs)
The value of the multiplication of this word and rhs.

/

 public Real /(Int rhs)
The value of this word divided by rhs.

abs

 public Int abs
The absolute value of this word.
Overloads:
abs in type Long

div

 public Int div(Int rhs)
The number of times that rhs fits completely within this word.

mod

 public Int mod(Integer rhs)
The result is this word modulo rhs.
Overloads:
mod in type Long

max

 public Int max(Int rhs)
The maximum of this word and rhs.

min

 public Int min(Int rhs)
The minimum of this word and rhs.

~

 public Int ~
The bitwise negation of this word.
Overloads:
~ in type Long

&

 public Int &(Int rhs)
The bitwise and of this word and rhs.

|

 public Int |(Int rhs)
The bitwise inclusive or of this word and rhs.

^

 public Int ^(Int rhs)
The bitwise exclusive or of this word and rhs.

<<

 public Int <<(Integer shift)
This word whose bits has been shifted shift times left.
Overloads:
<< in type Long

>>

 public Int >>(Integer shift)
This word whose bits has been shifted shift times right.
Overloads:
>> in type Long

<

 public Boolean <(Int rhs)
True if this word is less than rhs.

>

 public Boolean >(Int rhs)
True if this word is greater than rhs.

<=

 public Boolean <=(Int rhs)
True if this word is less than or equal to rhs.

>=

 public Boolean >=(Int rhs)
True if this word if greater than or equal to rhs.

toString

 public String toString
A representative character string of this word.
Overloads:
toString in type Long


Copyright 1999-2002 ObjeXion Software SA. All rights reserved.