Package io.keikai.model.impl
Class RevisionCellChangeImpl
java.lang.Object
io.keikai.model.impl.RevisionImpl
io.keikai.model.impl.RevisionCellChangeImpl
- All Implemented Interfaces:
SRevision,SRevisionCellChange,Serializable
public class RevisionCellChangeImpl
extends RevisionImpl
implements SRevisionCellChange, Serializable
Implementation of
SRevisionCellChange for tracking cell value changes.- Since:
- 7.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRevisionCellChangeImpl(long id, String author, Date timestamp, String sheetName, String cellRef, Object oldValue, Object newValue, SCell.CellType oldType, SCell.CellType newType) Creates a new cell change revision. -
Method Summary
Modifier and TypeMethodDescriptionReturns the cell reference string (e.g.Returns the new cell type after the change.Returns the new cell value after the change.Returns the old cell type before the change.Returns the old cell value before the change.toString()Methods inherited from class io.keikai.model.impl.RevisionImpl
getAuthor, getId, getSheetName, getTimestamp, getTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.keikai.model.SRevision
getAuthor, getId, getSheetName, getTimestamp, getType
-
Constructor Details
-
RevisionCellChangeImpl
public RevisionCellChangeImpl(long id, String author, Date timestamp, String sheetName, String cellRef, Object oldValue, Object newValue, SCell.CellType oldType, SCell.CellType newType) Creates a new cell change revision.- Parameters:
id- the revision IDauthor- the author nametimestamp- the timestampsheetName- the sheet namecellRef- the cell reference (e.g. "A1")oldValue- the old cell valuenewValue- the new cell valueoldType- the old cell typenewType- the new cell type
-
-
Method Details
-
getCellRef
Description copied from interface:SRevisionCellChangeReturns the cell reference string (e.g. "A1") of the changed cell.- Specified by:
getCellRefin interfaceSRevisionCellChange- Returns:
- the cell reference
-
getOldValue
Description copied from interface:SRevisionCellChangeReturns the old cell value before the change.- Specified by:
getOldValuein interfaceSRevisionCellChange- Returns:
- the old value, or null if the cell was empty
-
getNewValue
Description copied from interface:SRevisionCellChangeReturns the new cell value after the change.- Specified by:
getNewValuein interfaceSRevisionCellChange- Returns:
- the new value, or null if the cell is now empty
-
getOldType
Description copied from interface:SRevisionCellChangeReturns the old cell type before the change.- Specified by:
getOldTypein interfaceSRevisionCellChange- Returns:
- the old cell type
-
getNewType
Description copied from interface:SRevisionCellChangeReturns the new cell type after the change.- Specified by:
getNewTypein interfaceSRevisionCellChange- Returns:
- the new cell type
-
toString
- Overrides:
toStringin classRevisionImpl
-