public final class CadBinaryCodeValue extends CadCodeValue
Cad binary Code Value class
Constructor and 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. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(CadCodeValue obj)
Determines whether the specified
CadCodeValue , is equal to this instance. |
byte[] |
getBinaryData()
Gets the binary data.
|
boolean |
getBoolValue()
Gets the boolean value.
|
byte[] |
getData()
Gets or sets the value.
|
double |
getDoubleValue()
The get double value.
|
int |
getIntValue()
The get integer value.
|
long |
getLongValue()
The get long value.
|
short |
getShortValue()
The get short value.
|
void |
setData(byte[] value)
Gets or sets the value.
|
getAttribute, getCode, getStringValue, getValue, setCode, setValue
public CadBinaryCodeValue(int code, byte[] data, int dataCount)
Initializes a new instance of the CadBinaryCodeValue
class.
code
- The code of the parameter.data
- The data of the parameter.dataCount
- The data count.public CadBinaryCodeValue(int code, String value)
Initializes a new instance of the CadBinaryCodeValue
class.
code
- The code of the parameter.value
- The value of the parameter.public byte[] getData()
Gets or sets the value.
public void setData(byte[] value)
Gets or sets the value.
value
- The value.public byte[] getBinaryData()
Gets the binary data.
getBinaryData
in class CadCodeValue
public boolean getBoolValue()
Gets the boolean value.
getBoolValue
in class CadCodeValue
bool
.public short getShortValue()
The get short value.
getShortValue
in class CadCodeValue
short
.public int getIntValue()
The get integer value.
getIntValue
in class CadCodeValue
int
.public long getLongValue()
The get long value.
getLongValue
in class CadCodeValue
long
.public double getDoubleValue()
The get double value.
getDoubleValue
in class CadCodeValue
double
.public boolean equals(CadCodeValue obj)
Determines whether the specified CadCodeValue
, is equal to this instance.
equals
in class CadCodeValue
obj
- The CadCodeValue
to compare with this instance.true
if the specified CadCodeValue
is equal to this instance; otherwise, false
.