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

io.takari.bpm.model.AbstractElement Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
package io.takari.bpm.model;

import java.io.Serializable;
import java.util.Objects;

public abstract class AbstractElement implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	private final String id;

    public AbstractElement(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 97 * hash + Objects.hashCode(this.id);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final AbstractElement other = (AbstractElement) obj;
        return Objects.equals(this.id, other.id);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy