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.yangtools.concepts.Identifier;
12 public class TransactionIdentifier implements Identifier {
13 private static final long serialVersionUID = 1L;
14 private final String name;
16 public TransactionIdentifier(String name) {
21 public String toString() {
22 return "TransactionIdentifier{" + "name='" + name + '\'' + '}';
25 public String getName() {
30 public boolean equals(Object o) {
34 if (o == null || getClass() != o.getClass()) {
38 TransactionIdentifier that = (TransactionIdentifier) o;
40 if (name != null ? !name.equals(that.name) : that.name != null) {
48 public int hashCode() {
49 return name != null ? name.hashCode() : 0;