18#ifndef _DECAF_LANG_SHORT_H_
19#define _DECAF_LANG_SHORT_H_
81 return this->value == s.value;
90 return this->value == s.value;
100 return this->value < s.value;
117 return this->value == s;
126 return this->value == s;
136 return this->value < s;
149 return (
double) this->value;
157 return (
float) this->value;
165 return (
unsigned char) this->value;
181 return (
int) this->value;
189 return (
long long) this->value;
This interface imposes a total ordering on the objects of each class that implements it.
Definition Comparable.h:33
The abstract class Number is the superclass of classes Byte, Double, Float, Integer,...
Definition Number.h:35
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...
Definition Short.h:99
static short reverseBytes(short value)
Returns the value obtained by reversing the order of the bytes in the two's complement representation...
static Short valueOf(short value)
Returns a Short instance representing the specified short value.
virtual float floatValue() const
Answers the float value which the receiver represents.
Definition Short.h:156
virtual long long longValue() const
Answers the long value which the receiver represents.
Definition Short.h:188
static Short valueOf(const String &value, int radix)
Returns a Short object holding the value extracted from the specified std::string when parsed with th...
static const short MIN_VALUE
Max Value for this Object's primitive type.
Definition Short.h:48
bool equals(const short &s) const
Definition Short.h:116
virtual int compareTo(const short &s) const
Compares this Short instance with another.
Short(const String &value)
static Short decode(const String &value)
Decodes a String into a Short.
static const int SIZE
Size of this objects primitive type in bits.
Definition Short.h:42
std::string toString() const
static short parseShort(const String &s)
Parses the string argument as a signed decimal short.
virtual int intValue() const
Answers the int value which the receiver represents.
Definition Short.h:180
virtual short shortValue() const
Answers the short value which the receiver represents.
Definition Short.h:172
static std::string toString(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.
bool equals(const Short &s) const
Definition Short.h:80
virtual unsigned char byteValue() const
Answers the byte value which the receiver represents.
Definition Short.h:164
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...
Definition Short.h:135
static Short valueOf(const String &value)
Returns a Short object holding the value given by the specified std::string.
static const short MAX_VALUE
Max Value for this Object's primitive type.
Definition Short.h:45
virtual bool operator==(const short &s) const
Compares equality between this object and the one passed.
Definition Short.h:125
virtual double doubleValue() const
Answers the double value which the receiver represents.
Definition Short.h:148
virtual int compareTo(const Short &s) const
Compares this Short instance with another.
virtual bool operator==(const Short &s) const
Compares equality between this object and the one passed.
Definition Short.h:89
An immutable sequence of characters.
Definition String.h:57
#define DECAF_API
Definition Config.h:29
Definition ThreadingTypes.h:31
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25