2 * Copyright (c) 2014 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.cluster.datastore.messages;
11 public class PrimaryFound {
12 private final String primaryPath;
14 public PrimaryFound(String primaryPath) {
15 this.primaryPath = primaryPath;
18 public String getPrimaryPath() {
23 public boolean equals(Object o) {
24 if (this == o) return true;
25 if (o == null || getClass() != o.getClass()) return false;
27 PrimaryFound that = (PrimaryFound) o;
29 if (!primaryPath.equals(that.primaryPath)) return false;
35 public int hashCode() {
36 return primaryPath.hashCode();
40 public String toString() {
41 return "PrimaryFound{" +
42 "primaryPath='" + primaryPath + '\'' +