bump netty to version 4.0.10.Final
[controller.git] / opendaylight / config / config-manager / src / main / java / org / opendaylight / controller / config / manager / impl / TransactionIdentifier.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.config.manager.impl;
9
10 public class TransactionIdentifier {
11     private final String name;
12
13     public TransactionIdentifier(String name) {
14         this.name = name;
15     }
16
17     @Override
18     public String toString() {
19         return "TransactionIdentifier{" + "name='" + name + '\'' + '}';
20     }
21
22     public String getName() {
23         return name;
24     }
25
26     @Override
27     public boolean equals(Object o) {
28         if (this == o)
29             return true;
30         if (o == null || getClass() != o.getClass())
31             return false;
32
33         TransactionIdentifier that = (TransactionIdentifier) o;
34
35         if (name != null ? !name.equals(that.name) : that.name != null)
36             return false;
37
38         return true;
39     }
40
41     @Override
42     public int hashCode() {
43         return name != null ? name.hashCode() : 0;
44     }
45 }