b1779dbc8a15bd81b0920480cb8449b93bcc92ba
[controller.git] / opendaylight / md-sal / sal-dom-broker / src / main / java / org / opendaylight / controller / md / sal / dom / broker / impl / legacy / sharded / adapter / LegacyShardedDOMDataBrokerAdapterUtils.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.controller.md.sal.dom.broker.impl.legacy.sharded.adapter;
10
11 import org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType;
12
13 final class LegacyShardedDOMDataBrokerAdapterUtils {
14
15     private LegacyShardedDOMDataBrokerAdapterUtils() {
16         throw new AssertionError("Util class should not be instantiated");
17     }
18
19     public static org.opendaylight.mdsal.common.api.LogicalDatastoreType translateDataStoreType(final LogicalDatastoreType store) {
20         return store.equals(LogicalDatastoreType.CONFIGURATION) ?
21                 org.opendaylight.mdsal.common.api.LogicalDatastoreType.CONFIGURATION :
22                 org.opendaylight.mdsal.common.api.LogicalDatastoreType.OPERATIONAL;
23     }
24 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.