Class QWordValue


public final class QWordValue extends SettableRegistryValue
A representation of QWORD registry values. Instances of this class are immutable.
Author:
Rob Spoor
  • Method Details

    • 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 is null.
    • 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 class SettableRegistryValue
      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 class RegistryValue
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class RegistryValue
    • toString

      public String toString()
      Overrides:
      toString in class Object