Class NetworkAdapter
java.lang.Object
io.github.eggy03.ferrumx.windows.entity.network.NetworkAdapter
Immutable representation of a network adapter on a Windows system.
Fields correspond to properties retrieved from the Win32_NetworkAdapter
WMI class.
Instances are thread-safe and may be safely cached or shared across threads.
Usage example
NetworkAdapter adapter = NetworkAdapter.builder()
.name("Ethernet 1")
.macAddress("00:1A:2B:3C:4D:5E")
.netEnabled(true)
.build();
// Create a modified copy
NetworkAdapter updated = adapter.toBuilder()
.netEnabled(false)
.build();
NetworkAdapterConfiguration
contains related network configuration details.- Since:
- 2.0.0
- Author:
- Egg-03
- See Also:
-
Constructor Summary
Constructors -
Method Summary