Interface ResourceMetadata
- All Known Implementing Classes:
ResourceMetadata.MapBased
public interface ResourceMetadata
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResourceMetadatastatic final IoSupplier<ResourceMetadata> -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceMetadatafromJsonStream(InputStream inputStream) <T> Optional<T> getSection(MetadataSectionType<T> serializer) default <T> Optional<MetadataSectionType.WithValue<T>> getTypedSection(MetadataSectionType<T> type) default List<MetadataSectionType.WithValue<?>> getTypedSections(Collection<MetadataSectionType<?>> types) static <T> ResourceMetadataof(MetadataSectionType<T> k, T v) static <T1,T2> ResourceMetadata of(MetadataSectionType<T1> k1, T1 v1, MetadataSectionType<T2> k2, T2 v2)
-
Field Details
-
EMPTY
-
EMPTY_SUPPLIER
-
-
Method Details
-
fromJsonStream
- Throws:
IOException
-
getSection
-
getTypedSection
-
of
-
of
static <T1,T2> ResourceMetadata of(MetadataSectionType<T1> k1, T1 v1, MetadataSectionType<T2> k2, T2 v2) -
getTypedSections
default List<MetadataSectionType.WithValue<?>> getTypedSections(Collection<MetadataSectionType<?>> types)
-