|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VersionHierarchy
A version hierarchy can be used to register versions and then check for compatibility.
| Field Summary | |
|---|---|
static String |
VERSION_PART_SEPARATOR
The default version part separator ' .'. |
| Method Summary | |
|---|---|
void |
addVersion(List<String> version)
Adding a version number. |
void |
addVersion(String versionStr)
Adding a version number. |
void |
addVersion(VersionNumber version)
Adding a version number. |
List<String> |
convertVersion(String versionStr)
|
List<String> |
getRegisteredVersionAsStings()
Returns the registered versions as a List of String instances. |
List<VersionNumber> |
getRegisteredVersionNumbers()
Returns the registered versions as a List of VersionNumber instances. |
boolean |
isCompatible(List<String> version)
Returns true if the version is compatible with the known versions. |
boolean |
isCompatible(String version)
Returns true if the version is compatible with the known versions. |
boolean |
isCompatible(VersionNumber version)
Returns true if the version is compatible with the known versions. |
| Methods inherited from interface net.sourceforge.argval.version.VersionNumberVisitorAcceptor |
|---|
accept |
| Field Detail |
|---|
static final String VERSION_PART_SEPARATOR
.'.
| Method Detail |
|---|
void addVersion(VersionNumber version)
version - - the version numbervoid addVersion(String versionStr)
#convertVersion(String, String) for conversion.
versionStr - - as a text string separating the version number parts by a separator#convertVersion(String, String)void addVersion(List<String> version)
version - - as a list containing the version number partsList<String> convertVersion(String versionStr)
versionStr -
boolean isCompatible(VersionNumber version)
true if the version is compatible with the known versions.
version - - the version number
true if the version is compatible with the known versions
, otherwise false.boolean isCompatible(String version)
true if the version is compatible with the known versions.
Uses the #convertVersion(String, String) for conversion.
version - - the version number
true if the version is compatible with the known versions
, otherwise false.boolean isCompatible(List<String> version)
true if the version is compatible with the known versions.
version - - the version number
true if the version is compatible with the known versions
, otherwise false.List<String> getRegisteredVersionAsStings()
List<VersionNumber> getRegisteredVersionNumbers()
VersionNumber instances.
VersionNumber instances.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||