2005/5/9

     
 

class Double

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::lang::Double Class Reference

#include <Double.h>

Inheritance diagram for acdk::lang::Double:

acdk::lang::Number acdk::lang::Comparable acdk::lang::Cloneable acdk::lang::Object acdk::io::Serializable acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

Object wrapper for the basic double type.

API: Java with extensions

Author:
Roger Rene Kommer
Version:
Revision
1.23
Date:
Date
2005/04/09 19:26:48


Public Member Functions

 Double ()
 creates 0.0 double

 Double (double d)
 Double (IN(RString) str, IN(acdk::util::RLocale) locale=Nil) throw ( RNumberFormatException )
 parse the string

virtual int compareTo (IN(RDouble) o)
int compareTo (IN(RObject) o)
int compareTo (double other)
bool equals (IN(RDouble) o)
bool equals (IN(RObject) obj)
 Normally check for equality (not identity) Object::equals() is true only if both objects are the same instance.

bool equals (double other)
RObject clone (sys::Allocator *alc)
 reimplemented from Object

RObject clone ()
 reimplemented from Object

int hashCode ()
double doubleValue ()
float floatValue ()
jlong longValue ()
int intValue ()
short shortValue ()
byte byteValue ()
RString toString ()
 return a string representation of this object Object::toString() return getName() by default

virtual dmi::ScriptVar toScriptVar ()
bool isNaN ()
bool isInfinite ()

Static Public Member Functions

RObject create_instance ()
double parseDouble (IN(RString) s, IN(acdk::util::RLocale) locale=Nil) throw ( RNumberFormatException )
int hashCode (double value)
RString toString (double i, IN(acdk::util::RLocale) locale=Nil)
 if locale == Nil uses the C / en_US locals

RDouble valueOf (IN(RString) str) throw ( RNumberFormatException )
RClass getTYPE ()
double longBitsToDouble (jlong val)
jlong doubleToRawLongBits (double val)
bool isNaN (double v)
bool isInfinite (double v)

Static Public Attributes

double MAX_VALUE
double MIN_VALUE
double NaN
double NEGATIVE_INFINITY
double POSITIVE_INFINITY

Protected Attributes

double value


Constructor & Destructor Documentation

acdk::lang::Double::Double  )  [inline]
 

creates 0.0 double

acdk::lang::Double::Double double  d  )  [inline]
 

acdk::lang::Double::Double IN(RString str,
IN(acdk::util::RLocale locale = Nil
throw ( RNumberFormatException )
 

parse the string

Parameters:
str string to parse
locale if locale is Nil it uses the C / en_US encoding (not the default)
See also:
Number with more extended parsing functions


Member Function Documentation

byte acdk::lang::Double::byteValue  )  [inline, virtual]
 

Implements acdk::lang::Number.

RObject acdk::lang::Double::clone  )  [inline, virtual]
 

reimplemented from Object

Implements acdk::lang::Cloneable.

RObject acdk::lang::Double::clone sys::Allocator alc  )  [inline, virtual]
 

reimplemented from Object

Reimplemented from acdk::lang::Cloneable.

int acdk::lang::Double::compareTo double  other  )  [inline]
 

int acdk::lang::Double::compareTo IN(RObject o  )  [inline, virtual]
 

Implements acdk::lang::Comparable.

virtual int acdk::lang::Double::compareTo IN(RDouble o  )  [inline, virtual]
 

RObject acdk::lang::Double::create_instance  )  [inline, static]
 

Reimplemented from acdk::lang::Object.

jlong acdk::lang::Double::doubleToRawLongBits double  val  )  [inline, static]
 

double acdk::lang::Double::doubleValue  )  [inline, virtual]
 

Implements acdk::lang::Number.

bool acdk::lang::Double::equals double  other  )  [inline]
 

bool acdk::lang::Double::equals IN(RObject obj  )  [virtual]
 

Normally check for equality (not identity) Object::equals() is true only if both objects are the same instance.

See also:
serialized_equals()

Reimplemented from acdk::lang::Object.

bool acdk::lang::Double::equals IN(RDouble o  )  [inline]
 

float acdk::lang::Double::floatValue  )  [inline, virtual]
 

Implements acdk::lang::Number.

RClass acdk::lang::Double::getTYPE  )  [static]
 

int acdk::lang::Double::hashCode double  value  )  [static]
 

int acdk::lang::Double::hashCode  )  [inline, virtual]
 

See also:
serialized_hashCode

Reimplemented from acdk::lang::Number.

int acdk::lang::Double::intValue  )  [inline, virtual]
 

Implements acdk::lang::Number.

bool acdk::lang::Double::isInfinite double  v  )  [static]
 

bool acdk::lang::Double::isInfinite  ) 
 

bool acdk::lang::Double::isNaN double  v  )  [static]
 

bool acdk::lang::Double::isNaN  ) 
 

double acdk::lang::Double::longBitsToDouble jlong  val  )  [inline, static]
 

jlong acdk::lang::Double::longValue  )  [inline, virtual]
 

Implements acdk::lang::Number.

double acdk::lang::Double::parseDouble IN(RString s,
IN(acdk::util::RLocale locale = Nil
throw ( RNumberFormatException ) [static]
 

Parameters:
str string to parse
locale if locale is Nil it uses the C / en_US encoding (not the default)
See also:
Number with more extended parsing functions

short acdk::lang::Double::shortValue  )  [inline, virtual]
 

Implements acdk::lang::Number.

virtual dmi::ScriptVar acdk::lang::Double::toScriptVar  )  [inline, virtual]
 

Reimplemented from acdk::lang::Number.

RString acdk::lang::Double::toString double  i,
IN(acdk::util::RLocale locale = Nil
[static]
 

if locale == Nil uses the C / en_US locals

RString acdk::lang::Double::toString  )  [inline, virtual]
 

return a string representation of this object Object::toString() return getName() by default

Reimplemented from acdk::lang::Object.

RDouble acdk::lang::Double::valueOf IN(RString str  )  throw ( RNumberFormatException ) [static]
 


Member Data Documentation

double acdk::lang::Double::MAX_VALUE [static]
 

double acdk::lang::Double::MIN_VALUE [static]
 

double acdk::lang::Double::NaN [static]
 

double acdk::lang::Double::NEGATIVE_INFINITY [static]
 

double acdk::lang::Double::POSITIVE_INFINITY [static]
 

double acdk::lang::Double::value [protected]