Package oshi.software.common
Class AbstractOSVersionInfoEx
- java.lang.Object
-
- oshi.software.common.AbstractOSVersionInfoEx
-
- All Implemented Interfaces:
java.io.Serializable
,OperatingSystemVersion
- Direct Known Subclasses:
FreeBsdOSVersionInfoEx
,LinuxOSVersionInfoEx
,MacOSVersionInfoEx
,SolarisOSVersionInfoEx
,WindowsOSVersionInfoEx
public class AbstractOSVersionInfoEx extends java.lang.Object implements OperatingSystemVersion
Contains operating system version information. The information includes major and minor version numbers, a build number, a platform identifier, and descriptive text about the operating system.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
buildNumber
protected java.lang.String
codeName
protected java.lang.String
version
protected java.lang.String
versionStr
-
Constructor Summary
Constructors Constructor Description AbstractOSVersionInfoEx()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getBuildNumber()
java.lang.String
getCodeName()
java.lang.String
getVersion()
void
setBuildNumber(java.lang.String buildNumber)
void
setCodeName(java.lang.String codeName)
void
setVersion(java.lang.String version)
java.lang.String
toString()
-
-
-
Method Detail
-
getVersion
public java.lang.String getVersion()
- Specified by:
getVersion
in interfaceOperatingSystemVersion
- Returns:
- the version
-
setVersion
public void setVersion(java.lang.String version)
- Specified by:
setVersion
in interfaceOperatingSystemVersion
- Parameters:
version
- the version to set
-
getCodeName
public java.lang.String getCodeName()
- Specified by:
getCodeName
in interfaceOperatingSystemVersion
- Returns:
- the codeName
-
setCodeName
public void setCodeName(java.lang.String codeName)
- Specified by:
setCodeName
in interfaceOperatingSystemVersion
- Parameters:
codeName
- the codeName to set
-
getBuildNumber
public java.lang.String getBuildNumber()
- Specified by:
getBuildNumber
in interfaceOperatingSystemVersion
- Returns:
- the build number
-
setBuildNumber
public void setBuildNumber(java.lang.String buildNumber)
- Specified by:
setBuildNumber
in interfaceOperatingSystemVersion
- Parameters:
buildNumber
- the build number to set
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-