Class OperatingSystem.OSVersionInfo

java.lang.Object
oshi.software.os.OperatingSystem.OSVersionInfo
Enclosing interface:
OperatingSystem

@Immutable public static class OperatingSystem.OSVersionInfo extends Object
A class representing the Operating System version details.
  • Constructor Details

    • OSVersionInfo

      public OSVersionInfo(String version, String codeName, String buildNumber)
  • Method Details

    • getVersion

      public String getVersion()
      Gets the operating system version.
      Returns:
      The version, if any. May be null.
    • getCodeName

      public String getCodeName()
      Gets the operating system codename.
      Returns:
      The code name, if any. May be null.
    • getBuildNumber

      public String getBuildNumber()
      Gets the operating system build number.
      Returns:
      The build number, if any. May be null.
    • toString

      public String toString()
      Overrides:
      toString in class Object