public class RegQWORDValue extends RegistryValue
This class represents a named value of type REG_QWORD or REG_QWORD_LITTLE_ENDIAN.
The type specific data for the value will be a Long
.
RegistryValue
,
Serialized FormModifier and Type | Method and Description |
---|---|
long |
getLongValue()
Convenience method to retrieve the data as a
long
primitive data type. |
Long |
getValue()
Retrieves the type specific form of
this value
which is a Long . |
int |
refreshData()
This method is used to update the data for
this value
because the data does not update automatically if it was changed. |
int |
setLongValue(long value)
Convenience method to set the data using a
long
primitive data type. |
int |
setValue(Long value)
Used to set the data of
this value. |
String |
toString()
Retrieve a
String representation of this value. |
clone, compareTo, equals, getByteData, getByteLength, getKey, getName, getValueType, getValueTypeInt, hashCode, setByteData, setValueType, setValueTypeInt
public Long getValue()
this
value
which is a Long
.
RegistryValue.setValueType(ValueType)
and is no longer of type REG_QWORD or REG_QWORD_LITTLE_ENDIAN,
then a RegistryException
is thrown.
RegistryException
is also thrown.Long
representing the data.RegistryException
- if the type is not REG_QWORD or REG_QWORD_LITTLE_ENDIAN;
or if the byte length is not 8.public long getLongValue()
long
primitive data type.long
primitive data type representing the data.getValue()
public int setValue(Long value)
this
value.
If the type is no longer of type REG_QWORD or REG_QWORD_LITTLE_ENDIAN,
then a RegistryException
is thrown.value
- A Long
representing the new data for the value.RegistryKey.formatErrorMessage(int)
.RegistryException
- if the type is not REG_QWORD or REG_QWORD_LITTLE_ENDIAN.public int setLongValue(long value)
long
primitive data type.value
- A long
primitive data type representing the new data for the value.RegistryKey.formatErrorMessage(int)
.setValue(Long)
public int refreshData()
this
value
because the data does not update automatically if it was changed.refreshData
in class RegistryValue
RegistryKey.formatErrorMessage(int)
.RegistryException
- if the type is not REG_QWORD_LITTLE_ENDIAN.public String toString()
String
representation of this
value.toString
in class RegistryValue
String
representation for the value.Copyright © 2011, Yinon Michaeli. All rights reserved.