2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
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
9 package org.opendaylight.groupbasedpolicy.sxp.ep.provider.impl;
11 import com.google.common.base.Optional;
12 import javax.annotation.Nonnull;
15 * Purpose: encapsulate access to DS by exposing
18 * <dd>search through available values (e.g.: in local cache)</dd>
21 * @param <K> data key type
22 * @param <V> data type
24 public interface SimpleDao<K, V> {
27 * @param key for search
28 * @return value found by key
30 Optional<V> find(@Nonnull K key);