public final class HexValue extends Value
This is an immutable class.
BooleanValue,
StringValue,
LongValue,
StreamValue,
Serialized Form| Constructor and Description |
|---|
HexValue(Syntax syntax,
byte[] byteArray)
Constructor that uses a byte array.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates an exact duplicate of this object.
|
int |
getLength()
Returns the length of the byte[] that currently comprises the hex value.
|
java.lang.Object |
getObjectValue()
Returns the value as an Object, creating a new byte array.
|
byte[] |
getValue()
Returns the value as a byte array.
|
boolean |
isInteger64() |
void |
setInteger64(boolean isInteger64) |
compareTo, equals, getSyntax, isWithinBounds, toStringpublic HexValue(Syntax syntax, byte[] byteArray)
This should only be called by a syntax strategy for data types that use byte arrays to store their data.
syntax - Associated syntax.byteArray - A byte array.public boolean isInteger64()
public void setInteger64(boolean isInteger64)
public byte[] getValue()
The byte array returned is copied from the internal byte array thus keeping this value immutable.
public java.lang.Object getObjectValue()
getObjectValue in class Valuepublic int getLength()
API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated ${TODAY} ${TSTAMP}.