Class OperatingSystemVersionOshi

java.lang.Object
io.deephaven.process.OperatingSystemVersionOshi
All Implemented Interfaces:
PropertySet

@Immutable public abstract class OperatingSystemVersionOshi extends Object implements PropertySet
  • Constructor Details

    • OperatingSystemVersionOshi

      public OperatingSystemVersionOshi()
  • Method Details

    • getVersion

      @Parameter public abstract Optional<String> getVersion()
      Gets the operating system version.
      Returns:
      The version, if any.
    • getCodeName

      @Parameter public abstract Optional<String> getCodeName()
      Gets the operating system codename.
      Returns:
      The code name, if any.
    • getBuildNumber

      @Parameter public abstract Optional<String> getBuildNumber()
      Gets the operating system build number.
      Returns:
      The build number, if any.
    • traverse

      public final void traverse(PropertyVisitor visitor)
      Description copied from interface: PropertySet
      Traverse 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:
      traverse in interface PropertySet
      Parameters:
      visitor - the visitor
      See Also:
    • from

      public static OperatingSystemVersionOshi from(oshi.software.os.OperatingSystem.OSVersionInfo info)