Type Long

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

Predefined type Long
extends Integer, Float

The Long type is the Integer type with a 64 bits (8 bytes) precision, that is values from -9223372036854775808 to 9223372036854775807. Literals has the same structure as Integer ones. In that Long also has Float as a supertype, you can substitute Long to a Float or a Double.


Operation Summary
 Long +
          This word.
 Long +(Long rhs)
          The value of the addition of this integer and rhs.
 Long &(Long rhs)
          The bitwise and of this word and rhs.
 Long ~
          The biwise negation of this word.
 Long |(long rhs)
          The bitwise inclusive or of this word and rhs.
 Long ^(Long rhs)
          The bitwise exclusive or of this word and rhs.
 Long /(Long rhs)
          The value of this word divided by rhs.
 Boolean =(Long rhs)
          True if this word is equal to rhs.
 Boolean >=(Long rhs)
          True if this word is greater than or equal to rhs.
 Boolean >(Long rhs)
          True if this word is greater than rhs.
 Boolean <=(Long rhs)
          True if this word is less than or equal to rhs.
 Boolean <(Long rhs)
          True if this word is less than rhs.
 Long *(Long rhs)
          The value of the multiplication of this word ad rhs.
 Boolean <>(Long rhs)
          True is this word is not equal to rhs.
 Long <<(Integer shift)
          This word whose bits has been shifted shift times left.
 Long >>(Integer shift)
          This word whose bits has been shifted shift times right.
 Long -
          The opposite of this word.
 Long -(Long rhs)
          The value of the substraction of rhs from this word.
 Long abs
          The absolute value of this word.
 Long div(Long rhs)
          The number of times that rhs fits completely within this word.
 Long floor
          This word.
 Long max(Long rhs)
          The maximum of this word and rhs.
 Long min(Long rhs)
          The minimum of this word and rhs.
 Long mod(Integer rhs)
          The result is this word modulo rhs.
 Long round
          This word.
 String toString
          A representative character string of this word.
 
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 Long floor
This word.
Overloads:
floor in type Real

round

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

=

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

<>

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

+

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

-

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

+

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

-

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

*

 public Long *(Long rhs)
The value of the multiplication of this word ad rhs.

/

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

abs

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

div

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

mod

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

max

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

min

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

~

 public Long ~
The biwise negation of this word.

&

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

|

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

^

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

<<

 public Long <<(Integer shift)
This word whose bits has been shifted shift times left.

>>

 public Long >>(Integer shift)
This word whose bits has been shifted shift times right.

<

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

>

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

<=

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

>=

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

toString

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


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