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

src.app.core.model.scenario.strategy-parameter-definition.model.ts Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
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