Interface ResourceMetadata
public interface ResourceMetadata
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResourceMetadatastatic final IoSupplier<ResourceMetadata> -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceMetadatafromJsonStream(InputStream pStream) <T> Optional<T> getSection(MetadataSectionType<T> pType) default <T> Optional<MetadataSectionType.WithValue<T>> getTypedSection(MetadataSectionType<T> pType) default List<MetadataSectionType.WithValue<?>> getTypedSections(Collection<MetadataSectionType<?>> pTypes)
-
Field Details
-
EMPTY
-
EMPTY_SUPPLIER
-
-
Method Details
-
fromJsonStream
- Throws:
IOException
-
getSection
-
getTypedSection
default <T> Optional<MetadataSectionType.WithValue<T>> getTypedSection(MetadataSectionType<T> pType) -
getTypedSections
default List<MetadataSectionType.WithValue<?>> getTypedSections(Collection<MetadataSectionType<?>> pTypes)
-