com.thomsonreuters.ema.access.LongObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ema Show documentation
Show all versions of ema Show documentation
Enterprise Message API (EMA) Java Edition
///*|-----------------------------------------------------------------------------
// *| This source code is provided under the Apache 2.0 license --
// *| and is provided AS IS with no warranty or guarantee of fit for purpose. --
// *| See the project's LICENSE.md for details. --
// *| Copyright (C) 2019 Refinitiv. All rights reserved. --
///*|-----------------------------------------------------------------------------
package com.thomsonreuters.ema.access;
import com.thomsonreuters.upa.valueadd.common.VaNode;
class LongObject extends VaNode
{
long _value;
long value()
{
return _value;
}
LongObject value(long value)
{
_value = value;
return this;
}
public int hashCode()
{
return (int)(_value ^ (_value >>> 32));
}
public boolean equals(Object obj)
{
if (obj == this)
{
return true;
}
LongObject longObj;
try
{
longObj = (LongObject)obj;
}
catch (ClassCastException e)
{
return false;
}
return (longObj._value == _value);
}
LongObject clear()
{
_value = 0;
return this;
}
}