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

org.remapper.dto.ChildNode Maven / Gradle / Ivy

The newest version!
package org.remapper.dto;

import java.util.Objects;

public class ChildNode {

    private int label;
    private String value;

    public int getLabel() {
        return label;
    }

    public void setLabel(int label) {
        this.label = label;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ChildNode childNode = (ChildNode) o;
        return label == childNode.label && value.equals(childNode.value);
    }

    public boolean equalsIgnoreSimpleName(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ChildNode childNode = (ChildNode) o;
        if (label == 42 && childNode.label == 42) return true;
        return label == childNode.label && value.equals(childNode.value);
    }

    @Override
    public int hashCode() {
        return Objects.hash(label, value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy