1 package org.opendaylight.controller.config.yangjmxgenerator.attribute;
3 import org.opendaylight.controller.config.yangjmxgenerator.ServiceInterfaceEntry;
5 public class Dependency {
6 private final ServiceInterfaceEntry sie;
7 private final boolean mandatory;
9 public Dependency(ServiceInterfaceEntry sie, boolean mandatory) {
11 this.mandatory = mandatory;
14 public ServiceInterfaceEntry getSie() {
18 public boolean isMandatory() {
23 public boolean equals(Object o) {
26 if (o == null || getClass() != o.getClass())
29 Dependency that = (Dependency) o;
31 if (mandatory != that.mandatory)
33 if (!sie.equals(that.sie))
40 public int hashCode() {
41 int result = sie.hashCode();
42 result = 31 * result + (mandatory ? 1 : 0);