2 * Copyright (C) 2014 Red Hat, Inc.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 * Authors : Dave Tucker, Flavio Fernandes
11 package org.opendaylight.ovsdb.openstack.netvirt;
13 import org.opendaylight.controller.networkconfig.neutron.NeutronPort;
15 public class NorthboundEvent extends AbstractEvent {
17 private NeutronPort port;
19 NorthboundEvent(NeutronPort port, Action action) {
20 super(HandlerType.NEUTRON_PORT, action);
24 public NeutronPort getPort() {
29 public String toString() {
30 return "NorthboundEvent [action=" + super.getAction() + ", port=" + port + "]";
34 public int hashCode() {
36 int result = super.hashCode();
37 result = prime * result + ((port == null) ? 0 : port.hashCode());
42 public boolean equals(Object obj) {
47 if (getClass() != obj.getClass())
49 if (!super.equals(obj))
51 NorthboundEvent other = (NorthboundEvent) obj;
53 if (other.port != null)
55 } else if (!port.equals(other.port))