Class LibraryVersion
java.lang.Object
i5.las2peer.api.SemverVersion
i5.las2peer.classLoaders.libraries.LibraryVersion
- All Implemented Interfaces:
Serializable
A simple class managing a library version number in the format
<major> "." <minor> "." <patch> "-" <pre-release> "+" <build>
(where minor, patch, pre-release and build
are optional) or "*" (no version specified / matches all versions).- See Also:
-
Field Summary
Fields inherited from class i5.las2peer.api.SemverVersion
build, major, minor, patch, preRelease
-
Constructor Summary
ConstructorDescriptionLibraryVersion
(int major) generate a new LibraryVersionLibraryVersion
(int major, int minor) generate a new LibraryVersionLibraryVersion
(int major, int minor, int patch) generate a new LibraryVersionLibraryVersion
(int major, int minor, int patch, String preRelease) generate a new LibraryVersionLibraryVersion
(int major, int minor, int patch, String preRelease, String build) generate a new LibraryVersionLibraryVersion
(String version) Generate a Version from String representation format : Semver<major> "." <minor> "." <patch> "-" <pre-release> "+" <build>
(where minor, patch, pre-release and build are optional) or "*" (no version specified / matches all versions) -
Method Summary
-
Constructor Details
-
LibraryVersion
Generate a Version from String representation format : Semver<major> "." <minor> "." <patch> "-" <pre-release> "+" <build>
(where minor, patch, pre-release and build are optional) or "*" (no version specified / matches all versions)- Parameters:
version
- A version string representation- Throws:
IllegalArgumentException
- If the string contains no valid version representation
-
LibraryVersion
public LibraryVersion(int major, int minor, int patch, String preRelease, String build) throws IllegalArgumentException generate a new LibraryVersion- Parameters:
major
- Major version number partminor
- Minor version number partpatch
- Sub version number partpreRelease
- pre-release versionbuild
- build version- Throws:
IllegalArgumentException
- If a version number part is smaller than 0
-
LibraryVersion
public LibraryVersion(int major, int minor, int patch, String preRelease) throws IllegalArgumentException generate a new LibraryVersion- Parameters:
major
- Major version number partminor
- Minor version number partpatch
- Sub version number partpreRelease
- pre-release version- Throws:
IllegalArgumentException
- If a version number part is smaller than 0
-
LibraryVersion
generate a new LibraryVersion- Parameters:
major
- Major version number partminor
- Minor version number partpatch
- patch version number part- Throws:
IllegalArgumentException
- If a version number part is smaller than 0
-
LibraryVersion
generate a new LibraryVersion- Parameters:
major
- Major version number partminor
- Minor version number part- Throws:
IllegalArgumentException
- If a version number part is smaller than 0
-
LibraryVersion
generate a new LibraryVersion- Parameters:
major
- Major version number part- Throws:
IllegalArgumentException
- If a version number part is smaller than 0
-