leitstand-inventory-api/src/main/java/io/leitstand/inventory/service/PackageVersionRef.java
@Override
	public int compareTo(PackageVersionRef o) {
		int orgOrder = getOrganization().compareTo(o.getOrganization());
		if(orgOrder != 0){
			return orgOrder;
		}
		int nameOrder = getPackageName().compareTo(o.getPackageName());
		if(nameOrder != 0){
			return nameOrder;
		}
		return getPackageVersion().compareTo(o.getPackageVersion());
	}
/**
	 * Compares this package version with the given package version by organization, package name and version.
	 * @returns a negative integer, 0, or a positive integer as this version is lower, equal or greater than the specified version.
	 */
Compares this package version with the given package version by organization, package name and version.
@returns a negative integer, 0, or a positive integer as this version is lower, equal or greater than the specified version.
Compares this package version with the given package version by organization package name and version . @returns a negative integer 0 or a positive integer as this version is lower equal or greater than the specified version .
@Override
	public int compareTo(PackageVersionRef o) {
		int orgOrder = getOrganization().compareTo(o.getOrganization());
		if(orgOrder != 0){
			return orgOrder;
		}
		int nameOrder = getPackageName().compareTo(o.getPackageName());
		if(nameOrder != 0){
			return nameOrder;
		}
		return getPackageVersion().compareTo(o.getPackageVersion());
	}
@ Override public int compareTo ( PackageVersionRef o ) { int orgOrder = getOrganization ( ) . compareTo ( o . getOrganization ( ) ) ; if ( orgOrder != 0 ) { return orgOrder ; } int nameOrder = getPackageName ( ) . compareTo ( o . getPackageName ( ) ) ; if ( nameOrder != 0 ) { return nameOrder ; } return getPackageVersion ( ) . compareTo ( o . getPackageVersion ( ) ) ; }
Compares this package version with the given package version by organization, package name and version.
Compares this package version with the given package version by organization package name and version .