Class OperatingSystem
java.lang.Object
io.github.eggy03.ferrumx.windows.entity.os.OperatingSystem
Immutable representation of the Windows Operating System.
Fields correspond to properties retrieved from the Win32_OperatingSystem WMI class.
Instances are thread-safe and may be safely cached or shared across threads.
Usage examples
// Build a new OperatingSystem instance
OperatingSystem os = OperatingSystem.builder()
.name("Windows 11 Pro")
.version("22H2")
.numberOfUsers(1)
.osArchitecture("64-bit")
.build();
// Create a modified copy using the builder
OperatingSystem updated = os.toBuilder()
.numberOfUsers(5)
.build();
- Since:
- 2.0.0
- Author:
- Egg-03
- See Also:
-
Constructor Summary
Constructors -
Method Summary