public class RevisionMetadataType extends Object implements RevisionMetadata
RevisionMetadata as immutable type.| Modifier and Type | Field and Description |
|---|---|
private String |
author |
private Date |
date |
private Number |
revision |
| Constructor and Description |
|---|
RevisionMetadataType(Number revision,
Date date,
String author)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthor()
This method gets the identifier (login) of the author who created this revision.
|
Date |
getDate()
This method gets the date when this revision was created (closed).
|
Number |
getRevision()
This method gets the
revision
number. |
static RevisionMetadataType |
of(AdvancedRevisionEntity revEntity) |
String |
toString() |
private final Number revision
private final Date date
private final String author
public Number getRevision()
RevisionMetadatarevision
number.getRevision in interface RevisionMetadatapublic Date getDate()
RevisionMetadatagetDate in interface RevisionMetadatanull if the according entity is the latest revision.public String getAuthor()
RevisionMetadatagetAuthor in interface RevisionMetadatanull (if committed outside user scope).public static RevisionMetadataType of(AdvancedRevisionEntity revEntity)
revEntity - die AdvancedRevisionEntity.RevisionMetadataType bzw. null falls revision den Wert null
hat.Copyright © 2014–2019 devon4j-Team. All rights reserved.