Factor out {SharedSingleton,ImmutableOffset}MapTemplate
[yangtools.git] / common / util / src / main / java / org / opendaylight / yangtools / util / SharedSingletonMap.java
index 84e41d3bba325daca724a94fa349a18f977dd66a..27cdc62e542d2dff787b2ca7ee42d9e34dd8cd75 100644 (file)
@@ -24,6 +24,10 @@ import org.eclipse.jdt.annotation.NonNull;
  * Implementation of the {@link Map} interface which stores a single mapping. The key set is shared among all instances
  * which contain the same key. This implementation does not support null keys or values.
  *
+ * <p>
+ * In case the set of keys is statically known, you can use {@link SharedSingletonMapTemplate} to efficiently create
+ * {@link SharedSingletonMap} instances.
+ *
  * @param <K> the type of keys maintained by this map
  * @param <V> the type of mapped values
  */