Class MultiRegistry<K,V>

java.lang.Object
org.opendaylight.protocol.concepts.MultiRegistry<K,V>
Type Parameters:
K - key type
V - 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 Details

    • MultiRegistry

      public MultiRegistry()
  • Method Details

    • register

      public org.opendaylight.yangtools.concepts.Registration register(K key, V value)
    • get

      public V get(K key)
    • getAllValues

      public Iterable<V> getAllValues()