package org.opennaas.extensions.vcpe.model; import java.util.List; import javax.xml.bind.annotation.XmlIDREF; import javax.xml.bind.annotation.XmlSeeAlso; @XmlSeeAlso({ IPNetworkDomain.class }) public class Domain extends VCPENetworkElement { @XmlIDREF protected List<Interface> interfaces; public List<Interface> getInterfaces() { return interfaces; } public void setInterfaces(List<Interface> interfaces) { this.interfaces = interfaces; } @Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((interfaces == null) ? 0 : interfaces.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; Domain other = (Domain) obj; if (name == null) { if (other.name != null) return false; } else if (!name.equals(other.name)) return false; if (templateName == null) { if (other.templateName != null) return false; } else if (!templateName.equals(other.templateName)) return false; if (interfaces == null) { if (other.interfaces != null) return false; } else if (!interfaces.equals(other.interfaces)) return false; return true; } }