Class MultiRegistry<K,V>
- java.lang.Object
-
- org.opendaylight.protocol.concepts.MultiRegistry<K,V>
-
- Type Parameters:
K
- key typeV
- value type
public final class MultiRegistry<K,V> extends Object
A registry which allows multiple values for a particular key. One of those is considered the best and returned as the representative. When selecting the candidate, we evaluate the order of insertion, picking the value inserted first, but then we look at all the other candidates and if there is one which is a subclass of the first one, we select that one.This class is thread-safe.
-
-
Constructor Summary
Constructors Constructor Description MultiRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
get(K key)
Iterable<V>
getAllValues()
org.opendaylight.yangtools.concepts.Registration
register(K key, V value)
-