CadBinaryCodeValue
Inheritance: java.lang.Object, CadCodeValue
Cad binary Code Value class
Constructors
| Constructor | Description |
|---|---|
| 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
| Method | Description |
|---|---|
| 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:
| Parameter | Type | Description |
|---|---|---|
| code | int | The code of the parameter. |
| data | byte[] | The data of the parameter. |
| dataCount | int | The data count. |
CadBinaryCodeValue(int code, String value)
public CadBinaryCodeValue(int code, String value)
Initializes a new instance of the CadBinaryCodeValue class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| code | int | The code of the parameter. |
| value | String | The 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:
| Parameter | Type | Description |
|---|---|---|
| value | byte[] | 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:
| Parameter | Type | Description |
|---|---|---|
| obj | CadCodeValue | The CadCodeValue to compare with this instance. |
Returns: boolean - true if the specified CadCodeValue is equal to this instance; otherwise, false .