Merge "Removed duplicate sal-binding-config dependency."
[openflowplugin.git] / applications / forwardingrules-sync / src / main / java / org / opendaylight / openflowplugin / applications / frsync / util / ZipQueueEntry.java
1 /**
2  * Copyright (c) 2016 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
9 package org.opendaylight.openflowplugin.applications.frsync.util;
10
11 import org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType;
12 import org.opendaylight.openflowplugin.applications.frsync.impl.SyncReactorFutureZipDecorator;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowCapableNode;
14
15 /**
16  * Simple compression queue entry for {@link SyncReactorFutureZipDecorator}.
17  */
18 public class ZipQueueEntry {
19     private final FlowCapableNode after;
20     private final FlowCapableNode before;
21     private final LogicalDatastoreType dsTypeBefore;
22
23     public ZipQueueEntry(final FlowCapableNode after, final FlowCapableNode before,
24                          final LogicalDatastoreType dsTypeBefore) {
25         this.after = after;
26         this.before = before;
27         this.dsTypeBefore = dsTypeBefore;
28     }
29
30     public FlowCapableNode getLeft() {
31         return after;
32     }
33
34     public FlowCapableNode getRight() {
35         return before;
36     }
37
38     public LogicalDatastoreType getDsType() {
39         return dsTypeBefore;
40     }
41
42 }