public interface EntityMetadataRegistry extends MetadataRegistry<UUID>
MetadataMaps for Entitys.| Modifier and Type | Method and Description |
|---|---|
Optional<MetadataMap> |
get(Entity entity)
Gets a
MetadataMap for the given entity, if one already exists and has
been cached in this registry. |
<K> Map<Entity,K> |
getAllWithKey(MetadataKey<K> key)
Gets a map of the entities with a given metadata key
|
MetadataMap |
provide(Entity entity)
Produces a
MetadataMap for the given entity. |
cleanup, get, provide, remove@Nonnull MetadataMap provide(@Nonnull Entity entity)
MetadataMap for the given entity.entity - the entity@Nonnull Optional<MetadataMap> get(@Nonnull Entity entity)
MetadataMap for the given entity, if one already exists and has
been cached in this registry.entity - the entity@Nonnull <K> Map<Entity,K> getAllWithKey(@Nonnull MetadataKey<K> key)
K - the key typekey - the keyCopyright © 2020. All rights reserved.