Type Byte

All Supertypes:
Double, Float, Int, Integer, Long, OclAny, Real, Short

Predefined type Byte
extends Short

The Byte type is the Integer type with a 8 bits (1 byte) precision, that is values from -128 to 127. Literals has the same structure as Integer ones.


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

round

 public Byte round
This byte.
Overloads:
round in type Short

=

 public Boolean =(Byte rhs)
True if this byte is equal to rhs.

<>

 public Boolean <>(Byte rhs)
True if this byte is not equal to rhs.

+

 public Byte +
This byte.
Overloads:
+ in type Short

-

 public Byte -
The opposite of this byte.
Overloads:
- in type Short

+

 public Byte +(Byte rhs)
The value of the addition of this byte and rhs.

-

 public Byte -(Byte rhs)
The value of the substraction of rhs from this byte.

*

 public Byte *(Byte rhs)
The value of the multiplication of this byte and rhs.

/

 public Real /(Byte rhs)
The value of this byte divided by rhs.

abs

 public Byte abs
The absolute value of this byte.
Overloads:
abs in type Short

div

 public Byte div(Byte rhs)
The number of times that rhs completely fits within this byte.

mod

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

max

 public Byte max(Byte rhs)
The maximum of this byte and rhs.

min

 public Byte min(Byte rhs)
The minimum of this byte and rhs.

~

 public Byte ~
The bitwise negation of this byte.
Overloads:
~ in type Short

&

 public Byte &(Byte rhs)
The bitwise and of this byte and rhs.

|

 public Byte |(Byte rhs)
The bitwise inclusive or of this byte and rhs.

^

 public Byte ^(Byte rhs)
The bitwise exclusive or of this byte and rhs.

<<

 public Byte <<(Integer shift)
This byte whose bits has been shifted shift times left.
Overloads:
<< in type Short

>>

 public Byte >>(Integer rhs)
This byte whose bits has been shifted shift times right.
Overloads:
>> in type Short

<

 public Boolean <(Byte rhs)
True if this byte is less than rhs.

>

 public Boolean >(Byte rhs)
True if this byte if greater than rhs.

<=

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

>=

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

toString

 public String toString
A representative character string of this byte.
Overloads:
toString in type Short


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