Class QWordValue
- java.lang.Object
-
- com.github.robtimus.os.windows.registry.RegistryValue
-
- com.github.robtimus.os.windows.registry.SettableRegistryValue
-
- com.github.robtimus.os.windows.registry.QWordValue
-
public final class QWordValue extends SettableRegistryValue
A representation of QWORD registry values. Instances of this class are immutable.- Author:
- Rob Spoor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.github.robtimus.os.windows.registry.RegistryValue
RegistryValue.Filter
-
-
Field Summary
-
Fields inherited from class com.github.robtimus.os.windows.registry.RegistryValue
DEFAULT
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
static QWordValue
of(String name, long value)
Creates a new QWORD registry value.String
toString()
long
value()
Returns the registry value's QWORD value.QWordValue
withName(String name)
Returns a registry value with the same value as this registry value but a different name.QWordValue
withValue(long value)
Returns a registry value with the same name as this registry value but a different value.-
Methods inherited from class com.github.robtimus.os.windows.registry.RegistryValue
filter, name
-
-
-
-
Method Detail
-
of
public static QWordValue of(String name, long value)
Creates a new QWORD registry value.- Parameters:
name
- The name of the registry value.value
- The registry value's QWORD value.- Returns:
- The created QWORD registry value.
- Throws:
NullPointerException
- If the given name isnull
.
-
value
public long value()
Returns the registry value's QWORD value.- Returns:
- The registry value's QWORD value.
-
withName
public QWordValue withName(String name)
Description copied from class:SettableRegistryValue
Returns a registry value with the same value as this registry value but a different name.- Specified by:
withName
in classSettableRegistryValue
- Parameters:
name
- The name of the registry value to return.- Returns:
- A registry value with the same value as this registry value and the given name.
-
withValue
public QWordValue withValue(long value)
Returns a registry value with the same name as this registry value but a different value.- Parameters:
value
- The value of the registry value to return.- Returns:
- A registry value with the same name as this registry value and the given value.
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classRegistryValue
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classRegistryValue
-
-