Interface ObjectRegistry<K,V>

All Known Implementing Classes:
HttpCharsets$, HttpEncodings$, HttpMethods$, HttpProtocols$, MediaRanges$, MediaTypes$, StatusCodes$

public interface ObjectRegistry<K,V>
INTERNAL API

A unsynchronized registry to keep track of singleton instances similar to what java.lang.Enum provides. registry should therefore only be used inside of singleton constructors.

  • Method Details

    • getForKey

      scala.Option<V> getForKey(K key)
    • getForKeyCaseInsensitive

      scala.Option<V> getForKeyCaseInsensitive(String key, scala.$less$colon$less<String,K> conv)
    • register

      Object register(K key, V obj)