io.bdeploy.bhive.util.ManifestComparator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
Public API including dependencies, ready to be used for integrations and plugins.
package io.bdeploy.bhive.util;
import java.util.Comparator;
import io.bdeploy.bhive.model.Manifest.Key;
/**
* Comparator for manifest keys that are using a simple numeric version counting schema.
*/
public class ManifestComparator {
public static final Comparator NEWEST_FIRST = (a, b) -> Long.compare(Long.parseLong(b.getTag()),
Long.parseLong(a.getTag()));
private ManifestComparator() {
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy