3 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
5 * This program and the accompanying materials are made available under the
6 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 * and is available at http://www.eclipse.org/legal/epl-v10.html
10 package org.opendaylight.controller.arphandler;
12 import java.io.Serializable;
13 import java.net.InetAddress;
15 * ARP Event base class
17 public abstract class ARPEvent implements Serializable{
19 private static final long serialVersionUID = 1L;
20 private final InetAddress tIP;
24 public int hashCode() {
26 int result = prime + ((tIP == null) ? 0 : tIP.hashCode());
31 public boolean equals(Object obj) {
38 if (!(obj instanceof ARPEvent)) {
41 ARPEvent other = (ARPEvent) obj;
43 if (other.tIP != null) {
46 } else if (!tIP.equals(other.tIP)) {
52 public ARPEvent(InetAddress ip) {
56 public InetAddress getTargetIP() {