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 import java.io.Serializable;
13 public class PrimaryFound implements Serializable {
14 private static final long serialVersionUID = 1L;
16 private final String primaryPath;
18 public PrimaryFound(final String primaryPath) {
19 this.primaryPath = primaryPath;
22 public String getPrimaryPath() {
27 public boolean equals(final Object o) {
31 if (o == null || getClass() != o.getClass()) {
35 PrimaryFound that = (PrimaryFound) o;
37 if (!primaryPath.equals(that.primaryPath)) {
45 public int hashCode() {
46 return primaryPath.hashCode();
50 public String toString() {
51 StringBuilder builder = new StringBuilder();
52 builder.append("PrimaryFound [primaryPath=").append(primaryPath).append("]");
53 return builder.toString();