const _MwWrapper = require("../_mwbridge/_mw-wrapper.js");
const { MwHIBCPASRecord } = require("../_mwbridge/_mw-bridge.js");
/**
* <p>
* Class for storing HIBC PAS record.
* </p>
*/
class HIBCPASRecord extends _MwWrapper
{
/**
* <p>
* HIBCPASRecord constructor
* </p>
*
* @param dataType Type of data.
* @param data Data string.
*/
constructor(dataType, data)
{
super(new MwHIBCPASRecord(dataType, data));
}
/**
* <p>
* HIBCPASRecord constructor
* </p>
*/
static _fromMwObject(mwObject)
{
let obj = new HIBCPASRecord(0,"");
obj.setJavaClass(mwObject);
return obj;
}
_initializeWrapperMembers()
{}
/**
* <p>
* Identifies data type.
* </p>
*/
getDataType()
{
return this.getJavaClass().getDataTypeSync();
}
/**
* <p>
* Identifies data type.
* </p>
*/
setDataType(value)
{
this.getJavaClass().setDataTypeSync(value);
}
/**
* <p>
* Identifies data.
* </p>
*/
getData()
{
return this.getJavaClass().getDataSync();
}
/**
* <p>
* Identifies data.
* </p>
*/
setData(value)
{
this.getJavaClass().setDataSync(value);
}
/**
* <p>
* Returns a value indicating whether this instance is equal to a specified {@code HIBCPASDataType} value.
* </p>
*
* @param obj An {@code HIBCPASDataType} value to compare to this instance.
* @return {@code <b>true</b>} if obj has the same value as this instance; otherwise, {@code <b>false</b>}.
*/
equals(obj)
{
return this.getJavaClass().equalsSync(obj.getJavaClass());
}
/**
* <p>
* Returns the hash code for this instance.
* </p>
*
* @return A 32-bit signed integer hash code.
*/
hashCode()
{
return this.getJavaClass().hashCodeSync();
}
}
module.exports = HIBCPASRecord