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

com.hadii.clarpse.compiler.PackageComp Maven / Gradle / Ivy

There is a newer version: 7.1.1
Show newest version
package com.hadii.clarpse.compiler;

import com.hadii.clarpse.sourcemodel.Package;

import java.util.Comparator;

public class PackageComp implements Comparator {
    @Override
    public int compare(Package o1, Package o2) {
        if (o1.equals(o2)) {
            return 0;
        } else if (o2.path().length() <= o1.path().length()) {
            return -1;
        } else {
            return 1;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy