2 * Copyright © 2017 AT&T 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
8 package org.opendaylight.transportpce.common;
10 public class NodeIdPair {
12 private String nodeID;
15 public NodeIdPair(String nodeID, String tpID) {
20 public String getNodeID() {
24 public String getTpID() {
29 public boolean equals(Object object) {
33 if ((object == null) || (getClass() != object.getClass())) {
37 NodeIdPair that = (NodeIdPair) object;
39 if (this.nodeID != null ? !this.nodeID.equals(that.nodeID) : that.nodeID != null) {
42 return this.tpID != null ? this.tpID.equals(that.tpID) : that.tpID == null;
46 public int hashCode() {
47 int result = this.nodeID != null ? this.nodeID.hashCode() : 0;
48 result = (31 * result) + (this.tpID != null ? this.tpID.hashCode() : 0);
53 public String toString() {
54 return "NodeIdPair{" + "nodeID='" + this.nodeID + '\'' + ", tpID='" + this.tpID + '\'' + '}';