![JAR search and dependency download from the Maven repository](/logo.png)
com.adobe.versioncue.nativecomm.msg.NCDouble Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aem-sdk-api Show documentation
Show all versions of aem-sdk-api Show documentation
The Adobe Experience Manager SDK
/***************************************************************************/
/* */
/* ADOBE CONFIDENTIAL */
/* _ _ _ _ _ _ _ _ _ _ */
/* */
/* Copyright 2006, Adobe Systems Incorporated */
/* All Rights Reserved. */
/* */
/* NOTICE: All information contained herein is, and remains the property */
/* of Adobe Systems Incorporated and its suppliers, if any. The */
/* intellectual and technical concepts contained herein are proprietary */
/* to Adobe Systems Incorporated and its suppliers and may be coveredby */
/* U.S. and Foreign Patents, patents in process, and are protected by */
/* trade secret or copyright law. Dissemination of this information or */
/* reproduction of this material is strictly forbidden unless prior */
/* written permission is obtained from Adobe Systems Incorporated. */
/* */
/***************************************************************************/
package com.adobe.versioncue.nativecomm.msg;
/**
* @author Timo Naroska
* @version $Revision: #1 $
*/
public final class NCDouble extends NCNumber
{
// --------------------------------------------------------------------------- Private Variables
/** double value */
private final double value;
// -------------------------------------------------------------------------- Public Constructor
/**
* Public constructor
*
* @param value double value
*/
public NCDouble(double value)
{
this.value = value;
}
// ------------------------------------------------------------------------------ Public Methods
@Override
public double doubleValue()
{
return value;
}
@Override
public int intValue()
{
return (int) value;
}
@Override
public long longValue()
{
return (long) value;
}
@Override
public int getType()
{
return NCType.TYPE_DOUBLE;
}
@Override
public int hashCode()
{
long bits = Double.doubleToLongBits(value);
return (int) (bits ^ (bits >>> 32));
}
@Override
public String toString()
{
return "NCDouble <" + value + ">";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy