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

com.netgrif.application.engine.workflow.domain.TaskPair Maven / Gradle / Ivy

Go to download

System provides workflow management functions including user, role and data management.

There is a newer version: 6.3.3
Show newest version
package com.netgrif.application.engine.workflow.domain;

import lombok.Data;

import java.io.Serializable;

@Data
public class TaskPair implements Serializable {

    private static final long serialVersionUID = -3865322078419904394L;
    /**
     * ObjectId
     */
    private String task;
    /**
     * Import Id
     */
    private String transition;

    public TaskPair() {
    }

    public TaskPair(String task, String transition) {
        this.task = task;
        this.transition = transition;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;

        TaskPair taskPair = (TaskPair) o;

        return transition.equals(taskPair.transition);
    }

    @Override
    public int hashCode() {
        int result = super.hashCode();
        result = 31 * result + transition.hashCode();
        return result;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy