src.app.core.model.scenario.technical-step.model.ts Maven / Gradle / Ivy
The newest version!
/*
* SPDX-FileCopyrightText: 2017-2024 Enedis
*
* SPDX-License-Identifier: Apache-2.0
*
*/
import { areEquals, Equals } from '@shared/equals';
import { Clonable, cloneAsPossible } from '@shared/clonable';
export class TechnicalStep implements Equals, Clonable {
constructor(public task: string = '') { }
public equals(obj: TechnicalStep): boolean {
return obj && areEquals(this.task, obj.task);
}
public clone(): TechnicalStep {
return new TechnicalStep(cloneAsPossible(this.task));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy