"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OpenApiEndpointComparator = void 0;
const tstl_1 = require("tstl");
var OpenApiEndpointComparator;
(function (OpenApiEndpointComparator) {
    function hashCode(e) {
        return (0, tstl_1.hash)(e.path, e.method);
    }
    OpenApiEndpointComparator.hashCode = hashCode;
    function equals(x, y) {
        return x.path === y.path && x.method === y.method;
    }
    OpenApiEndpointComparator.equals = equals;
    function compare(x, y) {
        if (x.path !== y.path)
            return x.path.localeCompare(y.path);
        return x.method.localeCompare(y.method);
    }
    OpenApiEndpointComparator.compare = compare;
})(OpenApiEndpointComparator || (exports.OpenApiEndpointComparator = OpenApiEndpointComparator = {}));
//# sourceMappingURL=OpenApiEndpointComparator.js.map