BUG-6650: ep-ip/sgt, update/rename models and yangs for sxp-ise-adapter
[groupbasedpolicy.git] / sxp-mapper / src / main / java / org / opendaylight / groupbasedpolicy / sxp / mapper / api / SimpleDao.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 package org.opendaylight.groupbasedpolicy.sxp.mapper.api;
9
10 import com.google.common.base.Optional;
11 import javax.annotation.Nonnull;
12
13 /**
14  * Purpose: encapsulate access to DS by exposing
15  * <dl>
16  * <dt>find</dt>
17  * <dd>search through available values (e.g.: in  local cache)</dd>
18  * </dl>
19  *
20  * @param <K> data key type
21  * @param <V> data type
22  */
23 public interface SimpleDao<K, V> {
24
25     /**
26      * @param key for search
27      * @return value found by key
28      */
29     Optional<V> find(@Nonnull K key);
30
31 }