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