private Stream<String> findStream(String key) { return findMetadataStream(key).map(Metadata::getValue); }
private Stream<String> findStream(String key) { return findMetadataStream(key).map(Metadata::getValue); }
/** * Find the metadata, if present, for the given metadata key * * @param key to search for * @return optional of the metadata for the given key */ public Optional<Metadata> findMetadata(String key) { Preconditions.checkNotNull(key); return findMetadataStream(key).findFirst(); }
/** * Find the metadata, if present, for the given metadata key * * @param key to search for * @return optional of the metadata for the given key */ public Optional<Metadata> findMetadata(String key) { Preconditions.checkNotNull(key); return findMetadataStream(key).findFirst(); }