2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
9 package org.opendaylight.controller.sal.topology;
13 import org.apache.commons.lang3.builder.EqualsBuilder;
14 import org.apache.commons.lang3.builder.HashCodeBuilder;
15 import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
16 import org.opendaylight.controller.sal.core.Edge;
17 import org.opendaylight.controller.sal.core.Property;
18 import org.opendaylight.controller.sal.core.UpdateType;
21 * The class represents an Edge, the Edge's Property Set and its UpdateType.
24 public class TopoEdgeUpdate {
26 private Set<Property> props;
27 private UpdateType type;
29 public TopoEdgeUpdate(Edge e, Set<Property> p, UpdateType t) {
35 public Edge getEdge() {
39 public Set<Property> getProperty() {
43 public UpdateType getUpdateType() {
48 public int hashCode() {
49 return HashCodeBuilder.reflectionHashCode(this);
53 public String toString() {
54 return "TopoEdgeUpdate[" + ReflectionToStringBuilder.toString(this)
59 public boolean equals(Object obj) {
60 return EqualsBuilder.reflectionEquals(this, obj);