//
-// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
* @brief This is the implementation file for Long class.
* @see Number
*/
-
#include <wchar.h>
#include <limits.h>
#include <errno.h>
bool
Long::Equals(const Object& obj) const
{
- const Long* pOther = dynamic_cast <const Long*>(&obj);
+ const Long* pOther = dynamic_cast< const Long* >(&obj);
if (pOther == null)
{
return false;
int
Long::GetHashCode(void) const
{
- return static_cast<int> (value);
+ return static_cast< int >(value);
}
int
Long::GetHashCode(long val)
{
- return static_cast<int> (val);
+ return static_cast< int >(val);
}
result
char
Long::ToChar(void) const
{
- return static_cast<char> (value);
+ return static_cast< char >(value);
}
short
Long::ToShort(void) const
{
- return static_cast<short> (value);
+ return static_cast< short >(value);
}
int
Long::ToInt(void) const
{
- return static_cast<int> (value);
+ return static_cast< int >(value);
}
long
long long
Long::ToLongLong(void) const
{
- return static_cast<long long> (value);
+ return static_cast< long long >(value);
}
float
Long::ToFloat(void) const
{
- return static_cast<float> (value);
+ return static_cast< float >(value);
}
double
Long::ToDouble(void) const
{
- return static_cast<double> (value);
+ return static_cast< double >(value);
}
String