concatenate

public abstract ContextMetadata concatenate(ContextMetadata metadata)

Concatenates the given context metadata after this instance. Key value pairs are simply concatenated (rather than being merged) which may result in multiple single valued keys existing in the resulting sequence.

Whether this is achieved via copying or chaining of instances is an implementation detail.

Use MetadataProcessor to process metadata consistently with respect to single valued and repeated keys, and use findValue to look up the “most recent” value for a single valued key.