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 public class ARPCacheEvent {
13 private ARPEvent event;
14 private boolean newReply;
16 public ARPCacheEvent(ARPEvent event, boolean newReply) {
19 this.newReply = newReply;
22 public ARPEvent getEvent() {
26 public boolean isNewReply() {
31 public int hashCode() {
34 result = prime * result + ((event == null) ? 0 : event.hashCode());
35 result = prime * result + (newReply ? 1231 : 1237);
40 public boolean equals(Object obj) {
45 if (getClass() != obj.getClass())
47 ARPCacheEvent other = (ARPCacheEvent) obj;
49 if (other.event != null)
51 } else if (!event.equals(other.event))
53 if (newReply != other.newReply)
59 public String toString() {
60 return "ARPCacheEvent [event=" + event + ", newReply=" + newReply + "]";