io.virtdata.templates.BindPoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of virtdata-lib-realer Show documentation
Show all versions of virtdata-lib-realer Show documentation
With inspiration from other libraries
package io.virtdata.templates;
import java.util.Objects;
public class BindPoint {
private String anchor;
private String bindspec;
public BindPoint(String anchor, String bindspec) {
this.anchor = anchor;
this.bindspec = bindspec;
}
public String getAnchor() {
return anchor;
}
public String getBindspec() {
return bindspec;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
BindPoint bindPoint = (BindPoint) o;
if (!Objects.equals(anchor, bindPoint.anchor)) return false;
return Objects.equals(bindspec, bindPoint.bindspec);
}
@Override
public String toString() {
return "BindPoint{" +
"anchor='" + anchor + '\'' +
", bindspec='" + bindspec + '\'' +
'}';
}
}