Package io.deephaven.process
Class OperatingSystemVersionOshi
java.lang.Object
io.deephaven.process.OperatingSystemVersionOshi
- All Implemented Interfaces:
PropertySet
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.properties.PropertySet
PropertySet.PropertiesImpl, PropertySet.StringListImpl, PropertySet.StringMapImpl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OperatingSystemVersionOshifrom(oshi.software.os.OperatingSystem.OSVersionInfo info) Gets the operating system build number.Gets the operating system codename.Gets the operating system version.final voidtraverse(PropertyVisitor visitor) Traverse this property set and output the property key/values to the given visitor.
-
Constructor Details
-
OperatingSystemVersionOshi
public OperatingSystemVersionOshi()
-
-
Method Details
-
getVersion
Gets the operating system version.- Returns:
- The version, if any.
-
getCodeName
Gets the operating system codename.- Returns:
- The code name, if any.
-
getBuildNumber
Gets the operating system build number.- Returns:
- The build number, if any.
-
traverse
Description copied from interface:PropertySetTraverse this property set and output the property key/values to the given visitor.Callers should typically prefer to call
PropertyVisitor.visitProperties(PropertySet), as the inversion of logic allows the visitor (the more stateful object) to potentially perform initialization logic and traverse more efficiently.- Specified by:
traversein interfacePropertySet- Parameters:
visitor- the visitor- See Also:
-
from
-