getSingleValue

public abstract T getSingleValue<T>(MetadataKey<T> key)

Returns the unique value for a single valued key, or null if not present.

Throws

if passed a repeatable key (even if that key has one value).