Package joynr.types
Class Version
- java.lang.Object
-
- joynr.types.Version
-
- All Implemented Interfaces:
JoynrType,Serializable
public class Version extends Object implements Serializable, JoynrType
a version information- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intMAJOR_VERSIONstatic intMINOR_VERSION
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Check for equalityIntegergetMajorVersion()Gets MajorVersionIntegergetMinorVersion()Gets MinorVersioninthashCode()Calculate code for hashing based on member contentsvoidsetMajorVersion(Integer majorVersion)Sets MajorVersionvoidsetMinorVersion(Integer minorVersion)Sets MinorVersionStringtoString()Stringifies the class
-
-
-
Field Detail
-
MAJOR_VERSION
public static final int MAJOR_VERSION
- See Also:
- Constant Field Values
-
MINOR_VERSION
public static final int MINOR_VERSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Version
public Version()
Default Constructor
-
Version
public Version(Version versionObj)
Copy constructor- Parameters:
versionObj- reference to the object to be copied
-
-
Method Detail
-
getMajorVersion
public Integer getMajorVersion()
Gets MajorVersion- Returns:
- the major version id
-
setMajorVersion
public void setMajorVersion(Integer majorVersion)
Sets MajorVersion- Parameters:
majorVersion- the major version id
-
getMinorVersion
public Integer getMinorVersion()
Gets MinorVersion- Returns:
- the minor version id
-
setMinorVersion
public void setMinorVersion(Integer minorVersion)
Sets MinorVersion- Parameters:
minorVersion- the minor version id
-
toString
public String toString()
Stringifies the class
-
equals
public boolean equals(Object obj)
Check for equality
-
-