| |||||
Previous Next |
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 |
public Long floor
floor
in type Real
public Long round
round
in type Real
public Boolean =(Long rhs)
public Boolean <>(Long rhs)
public Long +
+
in type Integer
public Long -
-
in type Integer
public Long +(Long rhs)
public Long -(Long rhs)
public Long *(Long rhs)
public Long /(Long rhs)
public Long abs
abs
in type Integer
public Long div(Long rhs)
public Long mod(Integer rhs)
mod
in type Integer
public Long max(Long rhs)
public Long min(Long rhs)
public Long ~
public Long &(Long rhs)
public Long |(long rhs)
public Long ^(Long rhs)
public Long <<(Integer shift)
public Long >>(Integer shift)
public Boolean <(Long rhs)
public Boolean >(Long rhs)
public Boolean <=(Long rhs)
public Boolean >=(Long rhs)
public String toString
toString
in type Integer
| |||||
Previous Next |