Interface MetadataContributable
public interface MetadataContributable
Interface for an abstraction to be able to contribute metadata.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Removes all the items in the metadata map.getMetadata
(String name) Get the metadata value by thename
, or null if not found.Return unmodifiable metadata map.void
putMetadata
(String name, Object value) Put a metadata,value
, by thename
.removeMetadata
(String name) Remove the existing metadata value by thename
and return the old metadata value if removed.
-
Method Details
-
getMetadataMap
Return unmodifiable metadata map.- Returns:
- unmodifiable metadata map
-
putMetadata
Put a metadata,value
, by thename
.- Parameters:
name
- metadata namevalue
- metadata value
-
getMetadata
Get the metadata value by thename
, or null if not found.- Parameters:
name
- metadata name- Returns:
- metadata value, or null if not found.
-
removeMetadata
Remove the existing metadata value by thename
and return the old metadata value if removed. Or null if nothing was removed.- Parameters:
name
-- Returns:
-
clearMetadataMap
void clearMetadataMap()Removes all the items in the metadata map.
-