T - the typepublic interface MetadataRegistry<T>
MetadataMaps for a given type.| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Performs cache maintenance to remove empty map instances and expired transient values.
|
Optional<MetadataMap> |
get(T id)
Gets a
MetadataMap for the given object, if one already exists and has
been cached in this registry. |
MetadataMap |
provide(T id)
Produces a
MetadataMap for the given object. |
void |
remove(T id)
Deletes the
MetadataMap and all contained MetadataKeys for
the given object. |
@Nonnull MetadataMap provide(@Nonnull T id)
MetadataMap for the given object.id - the object@Nonnull Optional<MetadataMap> get(@Nonnull T id)
MetadataMap for the given object, if one already exists and has
been cached in this registry.id - the objectvoid remove(@Nonnull T id)
MetadataMap and all contained MetadataKeys for
the given object.id - the objectvoid cleanup()
Copyright © 2022. All rights reserved.