public interface

MetadataMap

com.atlassian.stash.repository.MetadataMap

Class Overview

A map of pluggable metadata associated with a Ref

Summary

Public Methods
@Nonnull Map<String, Object> asMap()
boolean contains(String completeModuleKey)
@Nullable Object get(String completeModuleKey)

Public Methods

@Nonnull public Map<String, Object> asMap ()

Returns
  • return the metadata as an immutable Map, keyed by complete module key.

public boolean contains (String completeModuleKey)

Parameters
completeModuleKey the complete module key of the provider which provided the metadata
Returns
  • true if metadata exists for this module key, false otherwise

@Nullable public Object get (String completeModuleKey)

Parameters
completeModuleKey the complete module key of the provider which provided the metadata
Returns
  • the associated metadata