public class OS
extends java.lang.Object
Constructor and Description |
---|
OS(Brand _brand,
OSFamily _family,
java.lang.String _description,
java.lang.String _version)
This constructor of the OS object allows to set all of its fields.
|
Modifier and Type | Method and Description |
---|---|
void |
appendToVersion(java.lang.String v)
Append details to the version number of this operating system;
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getDescription() |
OSFamily |
getFamily() |
Brand |
getVendor() |
java.lang.String |
getVersion() |
int |
hashCode() |
void |
setDescription(java.lang.String d) |
void |
setFamily(OSFamily f) |
void |
setVendor(Brand v) |
void |
setVersion(java.lang.String v) |
public OS(Brand _brand, OSFamily _family, java.lang.String _description, java.lang.String _version)
_brand
- The vendor of this operating system._family
- The family of this operating system._description
- The text description of this operating system._version
- The version of this operating system.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Brand getVendor()
public void setVendor(Brand v)
v
- The vendor, usually the company that ships (or shipped) the operating system.public OSFamily getFamily()
public void setFamily(OSFamily f)
f
- The family of this OS, like WINDOWS, LINUX, ANDROID, etc...public java.lang.String getDescription()
public void setDescription(java.lang.String d)
d
- The description is the name of the OS. For example: "Windows" or "Ubuntu" or "iOS"public java.lang.String getVersion()
public void setVersion(java.lang.String v)
v
- The version is precising which version of the OS is used. It can be "Vista" or "XP SP2" (for windows) or "7.1.2" for iOS.public void appendToVersion(java.lang.String v)
v
- The details to append