Class RevisionMetadataType
- java.lang.Object
-
- com.devonfw.module.basic.common.api.RevisionMetadataType
-
- All Implemented Interfaces:
RevisionMetadata
public class RevisionMetadataType extends Object implements RevisionMetadata
Implementation ofRevisionMetadataas 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 StringgetAuthor()This method gets the identifier (login) of the author who created this revision.DategetDate()This method gets the date when this revision was created (closed).NumbergetRevision()This method gets therevision number.StringtoString()
-
-
-
Method Detail
-
getRevision
public Number getRevision()
Description copied from interface:RevisionMetadataThis method gets therevision number.- Specified by:
getRevisionin interfaceRevisionMetadata- Returns:
- the revision number.
-
getDate
public Date getDate()
Description copied from interface:RevisionMetadataThis method gets the date when this revision was created (closed).- Specified by:
getDatein interfaceRevisionMetadata- Returns:
- the date of completion or
nullif the according entity is the latest revision.
-
getAuthor
public String getAuthor()
Description copied from interface:RevisionMetadataThis method gets the identifier (login) of the author who created this revision.- Specified by:
getAuthorin interfaceRevisionMetadata- Returns:
- the author. May be
null(if committed outside user scope).
-
-