All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.bdeploy.bhive.util.ManifestComparator Maven / Gradle / Ivy

Go to download

Public API including dependencies, ready to be used for integrations and plugins.

There is a newer version: 7.4.0
Show newest version
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