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
8 package org.opendaylight.controller.config.manager.impl;
10 import org.opendaylight.protocol.concepts.Identifier;
12 public class TransactionIdentifier implements Identifier {
13 private final String name;
15 public TransactionIdentifier(String name) {
20 public String toString() {
21 return "TransactionIdentifier{" + "name='" + name + '\'' + '}';
24 public String getName() {
29 public boolean equals(Object o) {
32 if (o == null || getClass() != o.getClass())
35 TransactionIdentifier that = (TransactionIdentifier) o;
37 if (name != null ? !name.equals(that.name) : that.name != null)
44 public int hashCode() {
45 return name != null ? name.hashCode() : 0;