Class Win32Environment
java.lang.Object
io.github.eggy03.ferrumx.windows.entity.system.Win32Environment
Immutable representation of the environment variables in a system running Windows.
Fields correspond to properties retrieved from the Win32_Environment WMI class.
Usage examples
// Build a new instance
Win32Environment env = Win32Environment.builder()
.name("DOT_NET_CLI_TELEMETRY_DISABLE")
.systemVariable(true)
.variableValue("0")
.build();
// Create a modified copy
Win32Environment updated = env.toBuilder()
.variableValue("1")
.build();
- Since:
- 3.0.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) @Nullable StringCharacter string that specifies the name of a Windows-based environment variable.(package private) @Nullable BooleanIndicates whether the variable is a system variable.(package private) @Nullable StringPlaceholder variable of a Windows-based environment variable. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
name
Character string that specifies the name of a Windows-based environment variable. -
systemVariable
Indicates whether the variable is a system variable. -
variableValue
Placeholder variable of a Windows-based environment variable. Information like the file system directory can change from computer to computer. The operating system substitutes placeholders for these.
-
-
Constructor Details
-
Win32Environment
public Win32Environment()
-
-
Method Details
-
isSystemVariable
-
toString
-