public class DefaultContentMetadata extends Object implements ContentMetadata
Default ContentMetadata implementation.
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultContentMetadata.Builder
The Default content metadata builder requires at least the name, the size and the media type.
|
| Modifier and Type | Method and Description |
|---|---|
static DefaultContentMetadata.Builder |
builder()
Creates a builder for a new concrete default content metadata.
|
static DefaultContentMetadata.Builder |
builder(ContentMetadata contentMetadata)
Creates a builder for a new concrete default content metadata based on a template.
|
boolean |
equals(Object o) |
Instant |
getLastDateModified()
Returns the last date when the content was modified.
|
com.google.common.net.MediaType |
getMediaType()
Returns the
MediaType of the content. |
String |
getName()
Returns the name of the content, typically, the original file name.
|
String |
getOwner()
Returns the string representing the owner of the content.
|
Map<String,String> |
getProperties()
Returns a map of additional properties that may be attached to the content.
|
long |
getSize()
Returns the size of the content, that is, its number of bytes.
|
Instant |
getUploadDate()
Returns upload date of the content.
|
int |
hashCode() |
String |
toString() |
public String getName()
ContentMetadataReturns the name of the content, typically, the original file name.
getName in interface ContentMetadatapublic long getSize()
ContentMetadataReturns the size of the content, that is, its number of bytes.
getSize in interface ContentMetadatapublic com.google.common.net.MediaType getMediaType()
ContentMetadataReturns the MediaType of the content.
getMediaType in interface ContentMetadatapublic Instant getLastDateModified()
ContentMetadataReturns the last date when the content was modified.
getLastDateModified in interface ContentMetadatapublic Instant getUploadDate()
ContentMetadataReturns upload date of the content.
getUploadDate in interface ContentMetadatapublic String getOwner()
ContentMetadataReturns the string representing the owner of the content.
getOwner in interface ContentMetadatapublic Map<String,String> getProperties()
ContentMetadataReturns a map of additional properties that may be attached to the content.
getProperties in interface ContentMetadatapublic static DefaultContentMetadata.Builder builder()
Creates a builder for a new concrete default content metadata.
public static DefaultContentMetadata.Builder builder(ContentMetadata contentMetadata)
Creates a builder for a new concrete default content metadata based on a template.
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.