X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Farphandler%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Farphandler%2FARPEvent.java;fp=opendaylight%2Farphandler%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Farphandler%2FARPEvent.java;h=0000000000000000000000000000000000000000;hb=42c32160bfd41de57189bb246fec5ffb48ed8e9e;hp=f676a79d4951043d22d45ea237f820ee0efc8476;hpb=edf5bfcee83c750853253ccfd991ba7000f5f65b;p=controller.git diff --git a/opendaylight/arphandler/src/main/java/org/opendaylight/controller/arphandler/ARPEvent.java b/opendaylight/arphandler/src/main/java/org/opendaylight/controller/arphandler/ARPEvent.java deleted file mode 100644 index f676a79d49..0000000000 --- a/opendaylight/arphandler/src/main/java/org/opendaylight/controller/arphandler/ARPEvent.java +++ /dev/null @@ -1,76 +0,0 @@ - -/* - * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - */ - -package org.opendaylight.controller.arphandler; - -import java.io.Serializable; -import java.net.InetAddress; -/* - * ARP Event base class - */ -public abstract class ARPEvent implements Serializable{ - - private static final long serialVersionUID = 1L; - private final InetAddress tIP; - - - @Override - public int hashCode() { - final int prime = 31; - int result = prime + ((tIP == null) ? 0 : tIP.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - if (obj == null) { - return false; - } - if (!(obj instanceof ARPEvent)) { - return false; - } - ARPEvent other = (ARPEvent) obj; - if (tIP == null) { - if (other.tIP != null) { - return false; - } - } else if (!tIP.equals(other.tIP)) { - return false; - } - return true; - } - - public ARPEvent(InetAddress ip) { - this.tIP = ip; - } - - public InetAddress getTargetIP() { - return tIP; - } - - /* - * (non-Javadoc) - * - * @see java.lang.Object#toString() - */ - @Override - public String toString() { - StringBuilder builder = new StringBuilder(); - builder.append("ARPEvent ["); - if (tIP != null) { - builder.append("tIP=") - .append(tIP); - } - builder.append("]"); - return builder.toString(); - } -}