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()
ContentMetadata
Returns the name of the content, typically, the original file name.
getName
in interface ContentMetadata
public long getSize()
ContentMetadata
Returns the size of the content, that is, its number of bytes.
getSize
in interface ContentMetadata
public com.google.common.net.MediaType getMediaType()
ContentMetadata
Returns the MediaType
of the content.
getMediaType
in interface ContentMetadata
public Instant getLastDateModified()
ContentMetadata
Returns the last date when the content was modified.
getLastDateModified
in interface ContentMetadata
public Instant getUploadDate()
ContentMetadata
Returns upload date of the content.
getUploadDate
in interface ContentMetadata
public String getOwner()
ContentMetadata
Returns the string representing the owner of the content.
getOwner
in interface ContentMetadata
public Map<String,String> getProperties()
ContentMetadata
Returns a map of additional properties that may be attached to the content.
getProperties
in interface ContentMetadata
public 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.