Type Short

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

Predefined type Short
extends Int

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

floor

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

round

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

=

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

<>

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

+

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

-

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

+

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

-

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

*

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

/

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

abs

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

div

 public Short div(Short rhs)
The number of times that rhs fits completely within rhs.

mod

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

max

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

min

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

~

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

&

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

|

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

^

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

<<

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

>>

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

<

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

>

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

<=

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

>=

 public Boolean >=(Short 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 Int


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