Class SettableRegistryValue

java.lang.Object
com.github.robtimus.os.windows.registry.RegistryValue
com.github.robtimus.os.windows.registry.SettableRegistryValue
Direct Known Subclasses:
BinaryValue, DWordValue, MultiStringValue, QWordValue, StringValue

public abstract sealed class SettableRegistryValue extends RegistryValue permits BinaryValue, DWordValue, MultiStringValue, QWordValue, StringValue
A representation of registry values that can be set. This includes string values, numeric values and binary values, but excludes values like links or resource lists.
Author:
Rob Spoor
  • Method Details

    • withName

      public abstract SettableRegistryValue withName(String name)
      Returns a registry value with the same value as this registry value but a different name.
      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.
      Throws:
      NullPointerException - If the given name is null.