org.bidib.wizard.api.model.RfBasisNode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bidibwizard-api Show documentation
Show all versions of bidibwizard-api Show documentation
jBiDiB BiDiB Wizard API POM
package org.bidib.wizard.api.model;
import java.util.Objects;
public class RfBasisNode implements RfBasisNodeInterface {
private final NodeInterface node;
public RfBasisNode(final NodeInterface node) {
this.node = node;
}
/**
* @return the node
*/
@Override
public NodeInterface getNode() {
return node;
}
@Override
public int hashCode() {
return Objects.hash(node);
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (!(obj instanceof RfBasisNode))
return false;
RfBasisNode other = (RfBasisNode) obj;
return Objects.equals(node, other.node);
}
@Override
public String toString() {
return node.toString();
}
}