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

com.gempukku.libgdx.graph.data.NodeConnector Maven / Gradle / Ivy

The newest version!
package com.gempukku.libgdx.graph.data;

public class NodeConnector {
    private final String nodeId;
    private final String fieldId;

    public NodeConnector(String nodeId, String fieldId) {
        this.nodeId = nodeId;
        this.fieldId = fieldId;
    }

    public String getNodeId() {
        return nodeId;
    }

    public String getFieldId() {
        return fieldId;
    }

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

        NodeConnector that = (NodeConnector) o;

        if (!nodeId.equals(that.nodeId)) return false;
        return fieldId.equals(that.fieldId);
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy