Package com.helger.diver.api.version
Class DVRPseudoVersion
java.lang.Object
com.helger.diver.api.version.DVRPseudoVersion
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,IDVRPseudoVersion,IDVRPseudoVersionComparable
Default implementation of
IDVRPseudoVersion- Since:
- 1.2.0
- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareToPseudoVersion(IDVRPseudoVersion aOtherPseudoVersion) Compare this object to the provided pseudo version.intcompareToVersion(com.helger.commons.version.Version aStaticVersion) Compare this object to the provided static version.booleanfinal StringgetID()inthashCode()toString()
-
Constructor Details
-
DVRPseudoVersion
public DVRPseudoVersion(@Nonnull @Nonempty String sID, @Nonnull IDVRPseudoVersionComparable aComparable)
-
-
Method Details
-
getID
- Specified by:
getIDin interfacecom.helger.commons.id.IHasID<String>
-
compareToPseudoVersion
Description copied from interface:IDVRPseudoVersionComparableCompare this object to the provided pseudo version.- Specified by:
compareToPseudoVersionin interfaceIDVRPseudoVersionComparable- 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
Description copied from interface:IDVRPseudoVersionComparableCompare this object to the provided static version.- Specified by:
compareToVersionin interfaceIDVRPseudoVersionComparable- Parameters:
aStaticVersion- 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
-
equals
-
hashCode
public int hashCode() -
toString
-