|
activemq-cpp-3.9.5
|
#include <src/main/decaf/lang/Short.h>

Public Member Functions | |
| Short (short value) | |
| Short (const String &value) | |
| virtual | ~Short () |
| virtual int | compareTo (const Short &s) const |
| Compares this Short instance with another. | |
| bool | equals (const Short &s) const |
| virtual bool | operator== (const Short &s) const |
| Compares equality between this object and the one passed. | |
| virtual bool | operator< (const Short &s) const |
| Compares this object to another and returns true if this object is considered to be less than the one passed. | |
| virtual int | compareTo (const short &s) const |
| Compares this Short instance with another. | |
| bool | equals (const short &s) const |
| virtual bool | operator== (const short &s) const |
| Compares equality between this object and the one passed. | |
| virtual bool | operator< (const short &s) const |
| Compares this object to another and returns true if this object is considered to be less than the one passed. | |
| std::string | toString () const |
| virtual double | doubleValue () const |
| Answers the double value which the receiver represents. | |
| virtual float | floatValue () const |
| Answers the float value which the receiver represents. | |
| virtual unsigned char | byteValue () const |
| Answers the byte value which the receiver represents. | |
| virtual short | shortValue () const |
| Answers the short value which the receiver represents. | |
| virtual int | intValue () const |
| Answers the int value which the receiver represents. | |
| virtual long long | longValue () const |
| Answers the long value which the receiver represents. | |
Public Member Functions inherited from decaf::lang::Number | |
| virtual | ~Number () |
| virtual unsigned char | byteValue () const |
| Answers the byte value which the receiver represents. | |
| virtual double | doubleValue () const =0 |
| Answers the double value which the receiver represents. | |
| virtual float | floatValue () const =0 |
| Answers the float value which the receiver represents. | |
| virtual int | intValue () const =0 |
| Answers the int value which the receiver represents. | |
| virtual long long | longValue () const =0 |
| Answers the long value which the receiver represents. | |
| virtual short | shortValue () const |
| Answers the short value which the receiver represents. | |
Public Member Functions inherited from decaf::lang::Comparable< Short > | |
| virtual | ~Comparable () |
| virtual int | compareTo (const Short &value) const=0 |
| Compares this object with the specified object for order. | |
| virtual bool | equals (const Short &value) const=0 |
| virtual bool | operator== (const Short &value) const=0 |
| Compares equality between this object and the one passed. | |
| virtual bool | operator< (const Short &value) const=0 |
| Compares this object to another and returns true if this object is considered to be less than the one passed. | |
Public Member Functions inherited from decaf::lang::Comparable< short > | |
| virtual | ~Comparable () |
| virtual int | compareTo (const short &value) const=0 |
| Compares this object with the specified object for order. | |
| virtual bool | equals (const short &value) const=0 |
| virtual bool | operator== (const short &value) const=0 |
| Compares equality between this object and the one passed. | |
| virtual bool | operator< (const short &value) const=0 |
| Compares this object to another and returns true if this object is considered to be less than the one passed. | |
Static Public Member Functions | |
| static std::string | toString (short value) |
| static Short | decode (const String &value) |
| Decodes a String into a Short. | |
| static short | reverseBytes (short value) |
| Returns the value obtained by reversing the order of the bytes in the two's complement representation of the specified short value. | |
| static short | parseShort (const String &s, int radix) |
| Parses the string argument as a signed short in the radix specified by the second argument. | |
| static short | parseShort (const String &s) |
| Parses the string argument as a signed decimal short. | |
| static Short | valueOf (short value) |
| Returns a Short instance representing the specified short value. | |
| static Short | valueOf (const String &value) |
| Returns a Short object holding the value given by the specified std::string. | |
| static Short | valueOf (const String &value, int radix) |
| Returns a Short object holding the value extracted from the specified std::string when parsed with the radix given by the second argument. | |
Static Public Attributes | |
| static const int | SIZE |
| Size of this objects primitive type in bits. | |
| static const short | MAX_VALUE |
| Max Value for this Object's primitive type. | |
| static const short | MIN_VALUE |
| Max Value for this Object's primitive type. | |
| decaf::lang::Short::Short | ( | short | value | ) |
| value | - short to wrap |
| value | The string value to convert to short and wrap. |
| NumberFormatException | if the string is not well formed number value. |
|
virtual |
|
inlinevirtual |
Answers the byte value which the receiver represents.
Reimplemented from decaf::lang::Number.
Compares this Short instance with another.
| s | - the Short instance to be compared |
Implements decaf::lang::Comparable< Short >.
|
virtual |
Compares this Short instance with another.
| s | - the Short instance to be compared |
Implements decaf::lang::Comparable< short >.
Decodes a String into a Short.
Accepts decimal, hexadecimal, and octal numbers given by the following grammar:
The sequence of characters following an (optional) negative sign and/or radix specifier ("0x", "0X", "#", or leading zero) is parsed as by the Short.parseShort method with the indicated radix (10, 16, or 8). This sequence of characters must represent a positive value or a NumberFormatException will be thrown. The result is negated if first character of the specified String is the minus sign. No whitespace characters are permitted in the string.
| value | - The string to decode |
| NumberFomatException | if the string is not formatted correctly. |
|
inlinevirtual |
Answers the double value which the receiver represents.
Implements decaf::lang::Number.
Implements decaf::lang::Comparable< Short >.
|
inlinevirtual |
Implements decaf::lang::Comparable< short >.
|
inlinevirtual |
Answers the float value which the receiver represents.
Implements decaf::lang::Number.
|
inlinevirtual |
Answers the int value which the receiver represents.
Implements decaf::lang::Number.
|
inlinevirtual |
Answers the long value which the receiver represents.
Implements decaf::lang::Number.
Compares this object to another and returns true if this object is considered to be less than the one passed.
This
| s | - the value to be compared to this one. |
Implements decaf::lang::Comparable< Short >.
|
inlinevirtual |
Compares this object to another and returns true if this object is considered to be less than the one passed.
This
| s | - the value to be compared to this one. |
Implements decaf::lang::Comparable< short >.
Compares equality between this object and the one passed.
| s | - the value to be compared to this one. |
Implements decaf::lang::Comparable< Short >.
|
inlinevirtual |
Compares equality between this object and the one passed.
| s | - the value to be compared to this one. |
Implements decaf::lang::Comparable< short >.
Parses the string argument as a signed decimal short.
The characters in the string must all be decimal digits, except that the first character may be an ASCII minus sign '-' to indicate a negative value. The resulting short value is returned, exactly as if the argument and the radix 10 were given as arguments to the parseShort( const std::string, int ) method.
| s | String to convert to a short |
| NumberFormatException | if the string is not a short. |
Parses the string argument as a signed short in the radix specified by the second argument.
The characters in the string must all be digits, of the specified radix (as determined by whether Character.digit(char, int) returns a nonnegative value) except that the first character may be an ASCII minus sign '-' to indicate a negative value. The resulting byte value is returned.
An exception of type NumberFormatException is thrown if any of the following situations occurs:
| s | The String containing the short representation to be parsed |
| radix | The radix to be used while parsing the string. |
| NumberFormatException | - If String does not contain a parsable short. |
|
static |
Returns the value obtained by reversing the order of the bytes in the two's complement representation of the specified short value.
| value | - the short whose bytes we are to reverse |
|
inlinevirtual |
Answers the short value which the receiver represents.
Reimplemented from decaf::lang::Number.
| std::string decaf::lang::Short::toString | ( | ) | const |
|
static |
Returns a Short object holding the value given by the specified std::string.
The argument is interpreted as representing a signed decimal short, exactly as if the argument were given to the parseShort( std::string ) method. The result is a Short object that represents the short value specified by the string.
| value | String to parse as base 10 |
| NumberFormatException | if the string is not a decimal short. |
Returns a Short object holding the value extracted from the specified std::string when parsed with the radix given by the second argument.
The first argument is interpreted as representing a signed short in the radix specified by the second argument, exactly as if the argument were given to the parseShort( std::string, int ) method. The result is a Short object that represents the short value specified by the string.
| value | String to parse as base ( radix ) |
| radix | Base of the string to parse. |
| NumberFormatException | if the string is not a valid short. |
|
static |
|
static |
Max Value for this Object's primitive type.
|
static |
Max Value for this Object's primitive type.
|
static |
Size of this objects primitive type in bits.