src.app.core.model.scenario.strategy-parameter-definition.model.ts Maven / Gradle / Ivy
import { areEquals, Equals } from '@shared/equals';
import { cloneAsPossible, Clonable } from '@shared/clonable';
export class ParameterDefinition implements Equals, Clonable {
constructor(
public name: string,
public type: string
) {
}
public equals(obj: ParameterDefinition): boolean {
return obj
&& areEquals(this.name, obj.name)
&& areEquals(this.type, obj.type);
}
public clone(): ParameterDefinition {
return new ParameterDefinition(
cloneAsPossible(this.name),
cloneAsPossible(this.type)
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy