Package org.trellisldp.api
Class BinaryMetadata.Builder
- java.lang.Object
-
- org.trellisldp.api.BinaryMetadata.Builder
-
- Enclosing class:
- BinaryMetadata
public static final class BinaryMetadata.Builder extends Object
A mutable buillder for aBinaryMetadata
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BinaryMetadata
build()
Build the BinaryMetadata object.BinaryMetadata.Builder
hints(Map<String,List<String>> hints)
Set the hints for persistence.BinaryMetadata.Builder
mimeType(String mimeType)
Set the binary MIME type.
-
-
-
Method Detail
-
mimeType
public BinaryMetadata.Builder mimeType(String mimeType)
Set the binary MIME type.- Parameters:
mimeType
- the MIME type- Returns:
- this builder
-
hints
public BinaryMetadata.Builder hints(Map<String,List<String>> hints)
Set the hints for persistence.- Parameters:
hints
- the hints, may not benull
- Returns:
- this builder
-
build
public BinaryMetadata build()
Build the BinaryMetadata object.- Returns:
- the built BinaryMetadata
-
-