Package com.helger.diver.api.version
Interface IDVRPseudoVersionComparable
- All Known Subinterfaces:
IDVRPseudoVersion
- All Known Implementing Classes:
DVRPseudoVersion
public interface IDVRPseudoVersionComparable
Helper interface to ensure that versions and pseudo version can be kept in
strict order.
- Since:
- 1.2.0
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionintcompareToPseudoVersion(IDVRPseudoVersion aOtherPseudoVersion) Compare this object to the provided pseudo version.intcompareToVersion(com.helger.commons.version.Version aOtherStaticVersion) Compare this object to the provided static version.
-
Method Details
-
compareToPseudoVersion
Compare this object to the provided pseudo version.- Parameters:
aOtherPseudoVersion- The pseudo version to compare to. Nevernull.- Returns:
- a value < 0 if this is < other version; value 0 if this = other version; value > 0 if this is > other version
-
compareToVersion
Compare this object to the provided static version.- Parameters:
aOtherStaticVersion- The static version to compare to. Nevernull.- Returns:
- a value < 0 if this is < other version; value 0 if this = other version; value > 0 if this is > other version
-