Class CodeVersion
java.lang.Object
com.aquima.interactions.foundation.Version
com.aquima.interactions.foundation.utility.CodeVersion
- All Implemented Interfaces:
Serializable
,Comparable<Version>
A code version represents the version of the code. It is used by FoundationVersion to report exact build information.
- Since:
- 5.0
- Author:
- F. van der Meer
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCodeVersion
(String releaseName, int major, int minor, String patch, String revision) Constructs the code version with the required arguments.CodeVersion
(String releaseName, int major, int minor, String patch, String revision, String edition) Constructs the code version with the required arguments. -
Method Summary
Modifier and TypeMethodDescriptionboolean
This method returns the edition of the code version.This method returns the release name of the code version.This method returns the revision number of the code version.This method returns a string representation of the code version.int
hashCode()
toString()
-
Constructor Details
-
CodeVersion
Constructs the code version with the required arguments.- Parameters:
releaseName
- The name of the release, may not be null.major
- The major version of the release.minor
- The minor version of the release.patch
- The patch version of the release, may not be null.revision
- The revision of the release, may not be null.
-
CodeVersion
public CodeVersion(String releaseName, int major, int minor, String patch, String revision, String edition) Constructs the code version with the required arguments.- Parameters:
releaseName
- The name of the release, may not be null.major
- The major version of the release.minor
- The minor version of the release.patch
- The patch version of the release, may not be null.revision
- The revision of the release, may not be null.edition
- The edition of the release, may be null.
-
-
Method Details
-
getString
This method returns a string representation of the code version. -
getReleaseName
This method returns the release name of the code version.- Returns:
- the release name of the code version.
-
getRevision
This method returns the revision number of the code version.- Returns:
- the revision number of the code version.
-
getEdition
This method returns the edition of the code version.- Returns:
- the edition of the code version, may be null.
-
toString
-
equals
-
hashCode
public int hashCode()
-