Class RevisionImpl

java.lang.Object
io.keikai.model.impl.RevisionImpl
All Implemented Interfaces:
SRevision, Serializable
Direct Known Subclasses:
RevisionCellChangeImpl, RevisionFormatImpl, RevisionInsertDeleteImpl

public class RevisionImpl extends Object implements SRevision, Serializable
Base implementation of SRevision. Subclassed by specific revision types.
Since:
7.0.0
See Also:
  • Constructor Details

    • RevisionImpl

      public RevisionImpl(long id, RevisionType type, String author, Date timestamp, String sheetName)
      Creates a new revision.
      Parameters:
      id - the revision ID
      type - the revision type
      author - the author name
      timestamp - the timestamp
      sheetName - the sheet name
  • Method Details

    • getId

      public long getId()
      Description copied from interface: SRevision
      Returns the revision ID.
      Specified by:
      getId in interface SRevision
      Returns:
      the revision ID
    • getType

      public RevisionType getType()
      Description copied from interface: SRevision
      Returns the type of this revision.
      Specified by:
      getType in interface SRevision
      Returns:
      the revision type
    • getAuthor

      public String getAuthor()
      Description copied from interface: SRevision
      Returns the author (user name) who made this change.
      Specified by:
      getAuthor in interface SRevision
      Returns:
      the author name
    • getTimestamp

      public Date getTimestamp()
      Description copied from interface: SRevision
      Returns the timestamp when this revision was recorded.
      Specified by:
      getTimestamp in interface SRevision
      Returns:
      the timestamp
    • getSheetName

      public String getSheetName()
      Description copied from interface: SRevision
      Returns the name of the sheet this revision applies to.
      Specified by:
      getSheetName in interface SRevision
      Returns:
      the sheet name
    • toString

      public String toString()
      Overrides:
      toString in class Object