public abstract class AbstractCommit extends Object implements Commit, CacheObject
| Modifier and Type | Field and Description |
|---|---|
protected Id |
branchRootId |
protected String |
changes |
protected long |
commitTS |
protected String |
msg |
protected Id |
parentId |
protected Id |
rootNodeId |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCommit() |
protected |
AbstractCommit(Commit other) |
| Modifier and Type | Method and Description |
|---|---|
Id |
getBranchRootId()
Returns
null if this commit does not represent a branch. |
String |
getChanges() |
long |
getCommitTS() |
int |
getMemory()
The estimated amount of memory used, in bytes.
|
String |
getMsg() |
Id |
getParentId() |
Id |
getRootNodeId() |
void |
serialize(Binding binding) |
String |
toString() |
protected Id rootNodeId
protected long commitTS
protected String msg
protected String changes
protected Id parentId
protected Id branchRootId
protected AbstractCommit()
protected AbstractCommit(Commit other)
public Id getParentId()
getParentId in interface Commitpublic Id getRootNodeId()
getRootNodeId in interface Commitpublic long getCommitTS()
getCommitTS in interface Commitpublic String getChanges()
getChanges in interface Commitpublic Id getBranchRootId()
Commitnull if this commit does not represent a branch.
Otherwise, returns the id of the branch root commit (i.e. the public commit that this private branch is based upon).
getBranchRootId in interface Commitnull if this commit
does not represent a branch.public int getMemory()
CacheObjectgetMemory in interface CacheObjectCopyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.