@Override public int hashCode() { int result = transportZone.hashCode(); result = 31 * result + (tunnel_type != null ? tunnel_type.hashCode() : 0); result = 31 * result + ipPrefix.hashCode(); result = 31 * result + (gatewayIP != null ? gatewayIP.hashCode() : 0); result = 31 * result + vlanID; result = 31 * result + topo_id.hashCode(); result = 31 * result + node_id.hashCode(); result = 31 * result + hwIp.hashCode(); return result; }
@Override public int hashCode() { if (hashValid) { return hash; } final int prime = 31; int result = 1; result = prime * result + ((_gatewayIp == null) ? 0 : _gatewayIp.hashCode()); result = prime * result + ((_key == null) ? 0 : _key.hashCode()); result = prime * result + ((_prefix == null) ? 0 : _prefix.hashCode()); result = prime * result + ((_vlanId == null) ? 0 : _vlanId.hashCode()); hash = result; hashValid = true; return result; }