Type Integer

All Supertypes:
OclAny, Real
All Subtypes:
Byte, Int, Long, Short

Predefined type Integer
extends Real

The pre-defined type Integer represents the mathematical concept of integer. An integer literal corresponds to: integer ::= (digit)+ digit ::= '0'..'9'


Operation Summary
 Integer +
          This integer.
 Integer +(Integer rhs)
          The value of the addition of this integer and rhs.
 Real /(Integer rhs)
          The value of the division of this integer divided by rhs.
 Boolean =(Integer rhs)
          True if this integer is equal to rhs.
 Boolean >=(Integer rhs)
          True if this integer is less than of equal to rhs.
 Boolean >(Integer rhs)
          True if this integer is greater than rhs.
 Boolean <=(Integer rhs)
          True if this integer is less than or equal to rhs.
 Boolean <(Integer rhs)
          True if this integer is less than rhs.
 Integer *(Integer rhs)
          The value of the multiplication of this integer and rhs.
 Boolean <>(Integer rhs)
          True if this integer is not equal to rhs.
 Integer -
          The opposite of this integer.
 Integer -(Integer rhs)
          The value of the substraction of rhs from this integer.
 Integer abs
          The absolute value of this integer.
 Integer div(Integer rhs)
          The number of times that rhs fits completely within this integer.
 Integer max(Integer rhs)
          The maximum of this integer and rhs.
 Integer min(Integer rhs)
          The minimum of this integer and rhs.
 Integer mod(Integer rhs)
          The result is this integer modulo rhs.
 String toString
          A representative character string of this integer.
 
Operations inherited from type Real
+, /, =, >=, >, <=, <, *, <>, -, floor, max, min, random, round
 
Operations inherited from type OclAny
=, <>, oclAsType, oclIsKindOf, oclIsTypeOf
 

Operations Detail

=

 public Boolean =(Integer rhs)
True if this integer is equal to rhs.

<>

 public Boolean <>(Integer rhs)
True if this integer is not equal to rhs.

+

 public Integer +
This integer.
Overloads:
+ in type Real

-

 public Integer -
The opposite of this integer.
Overloads:
- in type Real

+

 public Integer +(Integer rhs)
The value of the addition of this integer and rhs.

-

 public Integer -(Integer rhs)
The value of the substraction of rhs from this integer.

*

 public Integer *(Integer rhs)
The value of the multiplication of this integer and rhs.

/

 public Real /(Integer rhs)
The value of the division of this integer divided by rhs.

abs

 public Integer abs
The absolute value of this integer.
Overloads:
abs in type Real

div

 public Integer div(Integer rhs)
The number of times that rhs fits completely within this integer.

mod

 public Integer mod(Integer rhs)
The result is this integer modulo rhs.

max

 public Integer max(Integer rhs)
The maximum of this integer and rhs.

min

 public Integer min(Integer rhs)
The minimum of this integer and rhs.

<

 public Boolean <(Integer rhs)
True if this integer is less than rhs.

>

 public Boolean >(Integer rhs)
True if this integer is greater than rhs.

<=

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

>=

 public Boolean >=(Integer rhs)
True if this integer is less than of equal to rhs.

toString

 public String toString
A representative character string of this integer.
Overloads:
toString in type Real


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