@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((dhcpService == null) ? 0 : dhcpService.hashCode()); result = prime * result + ((firewallService == null) ? 0 : firewallService.hashCode()); result = prime * result + ((natService == null) ? 0 : natService.hashCode()); return result; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Features other = (Features) obj; if (dhcpService == null) { if (other.dhcpService != null) return false; } else if (!dhcpService.equals(other.dhcpService)) return false; if (firewallService == null) { if (other.firewallService != null) return false; } else if (!firewallService.equals(other.firewallService)) return false; if (natService == null) { if (other.natService != null) return false; } else if (!natService.equals(other.natService)) return false; return true; }