public class Commit
extends java.lang.Object
Constructor and Description |
---|
Commit(long cid,
long timestamp,
long parentCID,
long rootCID,
java.util.Map<java.lang.String,IdMap> objects)
Constructs a new commit
|
Commit(long cid,
long parentCID,
long rootCID,
java.util.Map<java.lang.String,IdMap> objects)
Constructs a new commit.
|
Modifier and Type | Method and Description |
---|---|
long |
getCID() |
java.util.Map<java.lang.String,IdMap> |
getObjects() |
long |
getParentCID() |
long |
getRootCID() |
long |
getTimestamp() |
public Commit(long cid, long parentCID, long rootCID, java.util.Map<java.lang.String,IdMap> objects)
cid
- the commit's IDparentCID
- the CID of this commit's parent. Can be 0 (zero) if
there is no parent (can only happen for the root commit)rootCID
- the root CID of the branch this commit belongs toobjects
- objects added/changed in this commit. Maps collection
names to maps of UIDs and OIDs.public Commit(long cid, long timestamp, long parentCID, long rootCID, java.util.Map<java.lang.String,IdMap> objects)
cid
- the commit's IDtimestamp
- the commit's timestamp (in milliseconds since epoch, UTC)parentCID
- the CID of this commit's parent. Can be 0 (zero) if
there is no parent (can only happen for the root commit)rootCID
- the root CID of the branch this commit belongs toobjects
- objects added/changed in this commit. Maps collection
names to maps of UIDs and OIDs.public long getCID()
public long getTimestamp()
public long getParentCID()
public long getRootCID()
public java.util.Map<java.lang.String,IdMap> getObjects()