/**
 * Copyright (c) 2020-present, Goldman Sachs
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import { hashArray } from '@finos/legend-shared';
import { CORE_HASH_STRUCTURE } from '../../../../../../../graph/Core_HashUtils.js';
import { V1_ClassMapping, } from './V1_ClassMapping.js';
export var V1_MappingOperationType;
(function (V1_MappingOperationType) {
    V1_MappingOperationType["STORE_UNION"] = "STORE_UNION";
    V1_MappingOperationType["ROUTER_UNION"] = "ROUTER_UNION";
    V1_MappingOperationType["INHERITANCE"] = "INHERITANCE";
    V1_MappingOperationType["MERGE"] = "MERGE";
})(V1_MappingOperationType || (V1_MappingOperationType = {}));
export class V1_OperationClassMapping extends V1_ClassMapping {
    parameters = [];
    operation;
    get hashCode() {
        return hashArray([
            CORE_HASH_STRUCTURE.OPERATION_SET_IMPLEMENTATION,
            this.operation,
            hashArray(this.parameters),
        ]);
    }
    accept_ClassMappingVisitor(visitor) {
        return visitor.visit_OperationClassMapping(this);
    }
}
//# sourceMappingURL=V1_OperationClassMapping.js.map