@MetadataDsl
public final class MetadataScope


Scope provided to the metadata dsl builder.

Summary

Public constructors

Public methods

final void
<K extends NavMetadataKey<@NonNull T>, T extends Object> put(@NonNull K key, @NonNull T value)

Adds the key and value pair to the map of metadata.

Public constructors

MetadataScope

Added in 1.1.0-alpha04
public MetadataScope()

Public methods

put

Added in 1.1.0-alpha04
public final void <K extends NavMetadataKey<@NonNull T>, T extends Object> put(@NonNull K key, @NonNull T value)

Adds the key and value pair to the map of metadata.

T the value type. K the key for a value of type T.

Parameters
@NonNull K key

the key associated with the value

@NonNull T value

the data to be added to the map of metadata