Package io.keikai.model.impl
Class RevisionInsertDeleteImpl
java.lang.Object
io.keikai.model.impl.RevisionImpl
io.keikai.model.impl.RevisionInsertDeleteImpl
- All Implemented Interfaces:
SRevision,SRevisionInsertDelete,Serializable
public class RevisionInsertDeleteImpl
extends RevisionImpl
implements SRevisionInsertDelete, Serializable
Implementation of
SRevisionInsertDelete for tracking row/column insert/delete.- Since:
- 7.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRevisionInsertDeleteImpl(long id, RevisionType type, String author, Date timestamp, String sheetName, CellRegion region, boolean insert) Creates a new insert/delete revision. -
Method Summary
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
-
RevisionInsertDeleteImpl
public RevisionInsertDeleteImpl(long id, RevisionType type, String author, Date timestamp, String sheetName, CellRegion region, boolean insert) Creates a new insert/delete revision.- Parameters:
id- the revision IDtype- the revision type (INSERT_ROW, DELETE_ROW, INSERT_COLUMN, or DELETE_COLUMN)author- the author nametimestamp- the timestampsheetName- the sheet nameregion- the affected regioninsert- true if insert, false if delete
-
-
Method Details
-
getRegion
Description copied from interface:SRevisionInsertDeleteReturns the cell region affected by this insert/delete operation.- Specified by:
getRegionin interfaceSRevisionInsertDelete- Returns:
- the cell region
-
isInsert
public boolean isInsert()Description copied from interface:SRevisionInsertDeleteReturns true if this is an insert operation, false if delete.- Specified by:
isInsertin interfaceSRevisionInsertDelete- Returns:
- true for insert, false for delete
-
toString
- Overrides:
toStringin classRevisionImpl
-