Class RevisionMetadataType
- java.lang.Object
-
- com.devonfw.module.basic.common.api.RevisionMetadataType
-
- All Implemented Interfaces:
RevisionMetadata
public class RevisionMetadataType extends Object implements RevisionMetadata
Implementation ofRevisionMetadata
as immutable type.
-
-
Constructor Summary
Constructors Constructor Description RevisionMetadataType(Number revision, Date date, String author)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 therevision number
.String
toString()
-
-
-
Method Detail
-
getRevision
public Number getRevision()
Description copied from interface:RevisionMetadata
This method gets therevision number
.- Specified by:
getRevision
in interfaceRevisionMetadata
- Returns:
- the revision number.
-
getDate
public Date getDate()
Description copied from interface:RevisionMetadata
This method gets the date when this revision was created (closed).- Specified by:
getDate
in interfaceRevisionMetadata
- Returns:
- the date of completion or
null
if the according entity is the latest revision.
-
getAuthor
public String getAuthor()
Description copied from interface:RevisionMetadata
This method gets the identifier (login) of the author who created this revision.- Specified by:
getAuthor
in interfaceRevisionMetadata
- Returns:
- the author. May be
null
(if committed outside user scope).
-
-