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.identifiers;
11 public class ShardManagerIdentifier {
12 private final String type;
14 public ShardManagerIdentifier(final String type) {
19 public boolean equals(final Object obj) {
23 if (obj == null || getClass() != obj.getClass()) {
26 return type.equals(((ShardManagerIdentifier) obj).type);
30 public int hashCode() {
31 return type.hashCode();
34 @Override public String toString() {
35 return "shardmanager-" + type;
38 public static Builder builder() {
42 public static class Builder {
45 public Builder type(final String newType) {
50 public ShardManagerIdentifier build() {
51 return new ShardManagerIdentifier(type);