Fix findbugs violations in hwvtepsouthbound-impl
[ovsdb.git] / hwvtepsouthbound / hwvtepsouthbound-impl / src / main / java / org / opendaylight / ovsdb / hwvtepsouthbound / HwvtepTransactionLogElement.java
1 /*
2  * Copyright (c) 2017 Ericsson India Global Services Pvt Ltd. 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.ovsdb.hwvtepsouthbound;
9
10 import org.opendaylight.ovsdb.utils.mdsal.utils.TransactionElement;
11 import org.opendaylight.ovsdb.utils.mdsal.utils.TransactionType;
12
13 public class HwvtepTransactionLogElement extends TransactionElement {
14
15     private final boolean isDeviceLog;
16
17     public HwvtepTransactionLogElement(TransactionType transactionType,
18                                        Object data,
19                                        boolean isDeviceLog) {
20         super(transactionType, data);
21         this.isDeviceLog = isDeviceLog;
22     }
23
24     public HwvtepTransactionLogElement(TransactionElement element,
25                                        boolean isDeviceLog) {
26         super(element.getTransactionType(), element.getData());
27         this.isDeviceLog = isDeviceLog;
28     }
29
30     @Override
31     public String toString() {
32         return "HwvtepTransactionLogElement [isDeviceLog=" + isDeviceLog + "]";
33     }
34 }