public interface PackageVersion
The version number of a package.
See 5.6.12 Version for further information.
Modifier and Type | Method and Description |
---|---|
String |
getDebianRevision()
Returns the version of the Debian package based on the upstream version.
|
String |
getEpoch()
Returns the epoch of the version.
|
String |
getText()
Returns the version as text.
|
String |
getUpstreamVersion()
Returns the upstream version which is the main part of the version
number.
|
String getEpoch()
Returns the epoch of the version.
This is a single (generally small) unsigned integer. It may be omitted, in which case zero is assumed. If it is omitted then the upstream_version may not contain any colons.
null
, if the version doesn't have any
epoch.String getUpstreamVersion()
Returns the upstream version which is the main part of the version number.
It is usually the version number of the original ("upstream") package from which the Debian package file has been made, if this is applicable.
String getDebianRevision()
Returns the version of the Debian package based on the upstream version.
null
, if the version doesn't
have any Debian revision.String getText()
Returns the version as text.
This method returns a textual representation of the version. This includes the epoch, the upstream version and the Debian revision.Copyright © 2015–2019. All rights reserved.