public final class Version
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Version.Developer
Developer information.
|
Constructor and Description |
---|
Version(java.lang.Class<T> clazz)
Creates a new version depending on the class parameter.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
application()
Provides the application name.
|
java.lang.String |
buildId()
Provides the unique build identifier for the last compiled date.
|
Version.Developer |
developer(int developerIdx)
Returns a specific developer from the collection.
|
java.util.Collection<Version.Developer> |
developers()
Returns the collection of all developers at declared in the version
annotation.
|
java.lang.String |
mailinglist()
Returns the mailing list for general questions for the project or requesting
a bug or feature.
|
int |
major()
Provides the major version number.
|
int |
minor()
Provides the minor version number.
|
java.lang.String |
release()
Provides the release string.
|
int |
revision()
Provides the revision version number.
|
java.lang.String |
toString()
Converts the version to human readable string value.
|
public Version(java.lang.Class<T> clazz)
AnnotationException
is thrown.T
- generic class typeclazz
- classAnnotationException
- is thrown if the corresponding class has no
representing AVersion annotationjava.lang.NullPointerException
- when the class is null
public java.lang.String application()
public int major()
public int minor()
public int revision()
public java.lang.String buildId()
public java.lang.String release()
public java.lang.String mailinglist()
public java.util.Collection<Version.Developer> developers()
public Version.Developer developer(int developerIdx)
developerIdx
- developer index of the collection.public java.lang.String toString()
toString
in class java.lang.Object
17-November-2016 09:39 Deutsches Elektronen-Synchrotron DESY in der Helmholtz-Gemeinschaft