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

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

Go to download

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

There is a newer version: 7.3.6
Show newest version
package io.bdeploy.bhive.util;

import java.util.Comparator;

import io.bdeploy.bhive.model.Manifest.Key;
import io.bdeploy.common.Version;
import io.bdeploy.common.util.VersionHelper;

public class VersionComparator {

    public static final Comparator BY_TAG_NEWEST_LAST = (a, b) -> VersionHelper.compare(a.getTag(), b.getTag());

    public static final Comparator NEWEST_LAST = VersionHelper::compare;

    private VersionComparator() {
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy