bug 8029 added ref counts for physical locators.
[ovsdb.git] / hwvtepsouthbound / hwvtepsouthbound-impl / src / main / java / org / opendaylight / ovsdb / hwvtepsouthbound / transact / MdsalUpdate.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
9 package org.opendaylight.ovsdb.hwvtepsouthbound.transact;
10
11 import org.opendaylight.yangtools.yang.binding.Identifiable;
12 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
13
14 public class MdsalUpdate<T extends Identifiable> {
15
16     private InstanceIdentifier key;
17     private T newData;
18     private T oldData;
19
20     public MdsalUpdate(InstanceIdentifier key, T newData, T oldData) {
21         this.key = key;
22         this.newData = newData;
23         this.oldData = oldData;
24     }
25
26     public InstanceIdentifier getKey() {
27         return key;
28     }
29
30     public T getNewData() {
31         return newData;
32     }
33
34     public T getOldData() {
35         return oldData;
36     }
37 }