CadBinaryCodeValue

Inheritance: java.lang.Object, CadCodeValue

Cad binary Code Value class

Constructors

ConstructorDescription
CadBinaryCodeValue(int code, byte[] data, int dataCount)Initializes a new instance of the CadBinaryCodeValue class.
CadBinaryCodeValue(int code, String value)Initializes a new instance of the CadBinaryCodeValue class.

Methods

MethodDescription
getData()Gets or sets the value.
setData(byte[] value)Gets or sets the value.
getBinaryData()Gets the binary data.
getBoolValue()Gets the boolean value.
getShortValue()The get short value.
getIntValue()The get integer value.
getLongValue()The get long value.
getDoubleValue()The get double value.
equals(CadCodeValue obj)Determines whether the specified CadCodeValue , is equal to this instance.

CadBinaryCodeValue(int code, byte[] data, int dataCount)

public CadBinaryCodeValue(int code, byte[] data, int dataCount)

Initializes a new instance of the CadBinaryCodeValue class.

Parameters:

ParameterTypeDescription
codeintThe code of the parameter.
databyte[]The data of the parameter.
dataCountintThe data count.

CadBinaryCodeValue(int code, String value)

public CadBinaryCodeValue(int code, String value)

Initializes a new instance of the CadBinaryCodeValue class.

Parameters:

ParameterTypeDescription
codeintThe code of the parameter.
valueStringThe value of the parameter.

getData()

public byte[] getData()

Gets or sets the value.

Returns: byte[] - The value.

setData(byte[] value)

public void setData(byte[] value)

Gets or sets the value.

Parameters:

ParameterTypeDescription
valuebyte[]The value.

getBinaryData()

public byte[] getBinaryData()

Gets the binary data.

Returns: byte[] - Byte array from hexadecimal data.

getBoolValue()

public boolean getBoolValue()

Gets the boolean value.

Returns: boolean - The bool .

getShortValue()

public short getShortValue()

The get short value.

Returns: short - The short .

getIntValue()

public int getIntValue()

The get integer value.

Returns: int - The int .

getLongValue()

public long getLongValue()

The get long value.

Returns: long - The long .

getDoubleValue()

public double getDoubleValue()

The get double value.

Returns: double - The double .

equals(CadCodeValue obj)

public boolean equals(CadCodeValue obj)

Determines whether the specified CadCodeValue , is equal to this instance.

Parameters:

ParameterTypeDescription
objCadCodeValueThe CadCodeValue to compare with this instance.

Returns: boolean - true if the specified CadCodeValue is equal to this instance; otherwise, false .