Class MultiStringValue
java.lang.Object
com.github.robtimus.os.windows.registry.RegistryValue
com.github.robtimus.os.windows.registry.SettableRegistryValue
com.github.robtimus.os.windows.registry.MultiStringValue
A representation of multi-string registry values.
Instances of this class are immutable.
- Author:
- Rob Spoor
-
Nested Class Summary
Nested classes/interfaces inherited from class RegistryValue
RegistryValue.Filter -
Field Summary
Fields inherited from class RegistryValue
DEFAULT -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()static MultiStringValueCreates a new multi-string registry value.static MultiStringValueCreates a new multi-string registry value.toString()values()Returns the registry value's string values.Returns a registry value with the same value as this registry value but a different name.withValues(String... values) Returns a registry value with the same name as this registry value but a different value.withValues(List<String> values) Returns a registry value with the same name as this registry value but a different value.Methods inherited from class RegistryValue
filter, name
-
Method Details
-
of
Creates a new multi-string registry value.- Parameters:
name- The name of the registry value.values- The registry value's string values.- Returns:
- The created multi-string registry value.
- Throws:
NullPointerException- If the name or any of the given values isnull.IllegalArgumentException- If any of the given values is empty.
-
of
Creates a new multi-string registry value.- Parameters:
name- The name of the registry value.values- The registry value's string values.- Returns:
- The created multi-string registry value.
- Throws:
NullPointerException- If the name or any of the given values isnull.IllegalArgumentException- If any of the given values is empty.
-
values
-
withName
Description copied from class:SettableRegistryValueReturns a registry value with the same value as this registry value but a different name.- Specified by:
withNamein 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.
-
withValues
Returns a registry value with the same name as this registry value but a different value.- Parameters:
values- The values of the registry value to return.- Returns:
- A registry value with the same name as this registry value and the given values.
- Throws:
NullPointerException- If any of the given values isnull.IllegalArgumentException- If any of the given values is empty.
-
withValues
Returns a registry value with the same name as this registry value but a different value.- Parameters:
values- The values of the registry value to return.- Returns:
- A registry value with the same name as this registry value and the given values.
- Throws:
NullPointerException- If any of the given values isnull.IllegalArgumentException- If any of the given values is empty.
-
equals
- Overrides:
equalsin classRegistryValue
-
hashCode
public int hashCode()- Overrides:
hashCodein classRegistryValue
-
toString
-