18 #ifndef _DECAF_LANG_SHORT_H_ 19 #define _DECAF_LANG_SHORT_H_ 62 Short(
const std::string& value );
74 virtual int compareTo(
const Short& s )
const;
80 return this->value == s.value;
89 return this->value == s.value;
99 return this->value < s.value;
110 virtual int compareTo(
const short& s )
const;
116 return this->value == s;
125 return this->value == s;
135 return this->value < s;
141 std::string toString()
const;
148 return (
double)this->value;
156 return (
float)this->value;
164 return (
unsigned char)this->value;
180 return (
int)this->value;
188 return (
long long)this->value;
196 static std::string toString(
short value );
213 static Short decode(
const std::string& value );
221 static short reverseBytes(
short value );
246 static short parseShort(
const std::string& s,
int radix );
260 static short parseShort(
const std::string& s );
267 static Short valueOf(
short value );
279 static Short valueOf(
const std::string& value );
293 static Short valueOf(
const std::string& value,
int radix );
virtual ~Short()
Definition: Short.h:64
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:134
virtual unsigned char byteValue() const
Answers the byte value which the receiver represents.
Definition: Short.h:163
virtual short shortValue() const
Answers the short value which the receiver represents.
Definition: Short.h:171
virtual int intValue() const
Answers the int value which the receiver represents.
Definition: Short.h:179
virtual bool operator==(const short &s) const
Compares equality between this object and the one passed.
Definition: Short.h:124
The abstract class Number is the superclass of classes Byte, Double, Float, Integer, Long, and Short.
Definition: Number.h:35
static const int SIZE
Size of this objects primitive type in bits.
Definition: Short.h:41
static const short MIN_VALUE
Max Value for this Object's primitive type.
Definition: Short.h:47
virtual bool operator==(const Short &s) const
Compares equality between this object and the one passed.
Definition: Short.h:88
virtual double doubleValue() const
Answers the double value which the receiver represents.
Definition: Short.h:147
virtual float floatValue() const
Answers the float value which the receiver represents.
Definition: Short.h:155
#define DECAF_API
Definition: Config.h:29
static const short MAX_VALUE
Max Value for this Object's primitive type.
Definition: Short.h:44
bool equals(const Short &s) const
Definition: Short.h:79
bool equals(const short &s) const
Definition: Short.h:115
virtual long long longValue() const
Answers the long value which the receiver represents.
Definition: Short.h:187
This interface imposes a total ordering on the objects of each class that implements it...
Definition: Comparable.h:33
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:98
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25