public class OperatingSystemVersionImpl extends AbstractOshiJsonObject implements OperatingSystemVersion
| Constructor and Description |
|---|
OperatingSystemVersionImpl(OperatingSystemVersion version)
Creates a new platform-specific OperatingSystemVersion object wrapping
the provided argument
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBuildNumber() |
String |
getCodeName() |
String |
getVersion() |
void |
setBuildNumber(String buildNumber) |
void |
setCodeName(String codeName) |
void |
setVersion(String version) |
javax.json.JsonObject |
toJSON(Properties properties)
Returns this object as a
JsonObject. |
String |
toString() |
toCompactJSON, toCompactJSON, toJSON, toPrettyJSON, toPrettyJSONclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoCompactJSON, toCompactJSON, toJSON, toPrettyJSON, toPrettyJSONpublic OperatingSystemVersionImpl(OperatingSystemVersion version)
version - a platform-specific OperatingSystemVersion objectpublic String getVersion()
getVersion in interface OperatingSystemVersionpublic void setVersion(String version)
setVersion in interface OperatingSystemVersionversion - the version to setpublic String getCodeName()
getCodeName in interface OperatingSystemVersionpublic void setCodeName(String codeName)
setCodeName in interface OperatingSystemVersioncodeName - the codeName to setpublic String getBuildNumber()
getBuildNumber in interface OperatingSystemVersionpublic void setBuildNumber(String buildNumber)
setBuildNumber in interface OperatingSystemVersionbuildNumber - the build number to setpublic javax.json.JsonObject toJSON(Properties properties)
JsonObject. The provided
properties will be set on this object to configure the type of
information returned using this and future invocations of
OshiJsonObject.toJSON().toJSON in interface OshiJsonObjectproperties - Properties to configure returned resultsJsonObject for this class.public String toString()
toString in class AbstractOshiJsonObjectCopyright © 2010–2017 oshi. All rights reserved.