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

org.openl.rules.model.scaffolding.ParameterModel Maven / Gradle / Ivy

There is a newer version: 5.27.8.1
Show newest version
package org.openl.rules.model.scaffolding;

import java.util.Objects;

public class ParameterModel implements InputParameter {

    private final TypeInfo type;
    private final String formattedName;
    private final String originalName;
    private In in;

    public ParameterModel(TypeInfo type, String formattedName) {
        this.type = type;
        this.formattedName = formattedName;
        this.originalName = formattedName;
    }

    public ParameterModel(TypeInfo type, String formattedName, String originalName) {
        this.type = type;
        this.formattedName = formattedName;
        this.originalName = originalName;
    }

    public TypeInfo getType() {
        return type;
    }

    public String getFormattedName() {
        return formattedName;
    }

    public String getOriginalName() {
        return originalName;
    }

    public In getIn() {
        return in;
    }

    public void setIn(In in) {
        this.in = in;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        ParameterModel that = (ParameterModel) o;
        return Objects.equals(type, that.type) && Objects.equals(formattedName, that.formattedName) && Objects
                .equals(originalName, that.originalName) && in == that.in;
    }

    @Override
    public int hashCode() {
        return Objects.hash(type, formattedName, in, originalName);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy