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

com.fluxtion.runtime.callback.NamedNodeSimple Maven / Gradle / Ivy

package com.fluxtion.runtime.callback;

import com.fluxtion.runtime.audit.EventLogNode;
import com.fluxtion.runtime.node.NamedNode;

import java.util.Objects;

public abstract class NamedNodeSimple extends EventLogNode implements NamedNode {

    private String name;

    public NamedNodeSimple(String name) {
        this.name = name;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        NamedNodeSimple that = (NamedNodeSimple) o;
        return Objects.equals(name, that.name);
    }

    @Override
    public int hashCode() {
        return name.hashCode();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy