/*
* Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.groupbasedpolicy.sxp.ep.provider.impl;
import java.util.Collection;
import javax.annotation.Nonnull;
/**
* Purpose: simple search interface allowing for custom key and returning list of values
*
* @param <X> special key type
* @param <V> value type
*/
public interface ReadableByKey<X, V> {
/**
* @param specialKey custom key to search by
* @return list of found values
*/
Collection<V> readBy(@Nonnull X specialKey);
}