L - type of lane being used by the plotter.public class PlotCommit<L extends PlotLane> extends RevCommit
PlotCommitList,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
(package private) PlotCommit[] |
children |
(package private) PlotLane[] |
forkingOffLanes |
(package private) PlotLane |
lane |
(package private) PlotLane[] |
mergingLanes |
(package private) static PlotCommit[] |
NO_CHILDREN |
(package private) static PlotLane[] |
NO_LANES |
(package private) static Ref[] |
NO_REFS |
(package private) PlotLane[] |
passingLanes |
(package private) Ref[] |
refs |
| Modifier | Constructor and Description |
|---|---|
protected |
PlotCommit(AnyObjectId id)
Create a new commit.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addChild(PlotCommit c) |
(package private) void |
addForkingOffLane(PlotLane f) |
private static PlotLane[] |
addLane(PlotLane l,
PlotLane[] lanes) |
(package private) void |
addMergingLane(PlotLane m) |
(package private) void |
addPassingLane(PlotLane c) |
PlotCommit |
getChild(int nth)
Get the nth child from this commit's child list.
|
int |
getChildCount()
Get the number of child commits listed in this commit.
|
L |
getLane()
Obtain the lane this commit has been plotted into.
|
Ref |
getRef(int nth)
Get the nth Ref from this commit's ref list.
|
int |
getRefCount()
Get the number of refs for this commit.
|
boolean |
isChild(PlotCommit c)
Determine if the given commit is a child (descendant) of this commit.
|
void |
reset()
Reset this commit to allow another RevWalk with the same instances.
|
carry, disposeBody, getAuthorIdent, getCommitterIdent, getCommitTime, getEncoding, getEncodingName, getFooterLines, getFooterLines, getFooterLines, getFullMessage, getParent, getParentCount, getParents, getRawBuffer, getShortMessage, getTree, getType, parse, parse, toStringadd, add, appendCoreFlags, getId, has, hasAll, hasAny, remove, removeequals, fromRaw, fromRaw, fromRaw, fromRaw, fromString, fromString, isId, toObjectId, toString, zeroIdstatic final PlotCommit[] NO_CHILDREN
static final PlotLane[] NO_LANES
static final Ref[] NO_REFS
PlotLane[] forkingOffLanes
PlotLane[] passingLanes
PlotLane[] mergingLanes
PlotLane lane
PlotCommit[] children
Ref[] refs
protected PlotCommit(AnyObjectId id)
id - the identity of this commit.void addForkingOffLane(PlotLane f)
void addPassingLane(PlotLane c)
void addMergingLane(PlotLane m)
void addChild(PlotCommit c)
public final int getChildCount()
public final PlotCommit getChild(int nth)
nth - child index to obtain. Must be in the range 0 through
getChildCount()-1.java.lang.ArrayIndexOutOfBoundsException - an invalid child index was specified.public final boolean isChild(PlotCommit c)
c - the commit to test.public final int getRefCount()
public final Ref getRef(int nth)
nth - ref index to obtain. Must be in the range 0 through
getRefCount()-1.java.lang.ArrayIndexOutOfBoundsException - an invalid ref index was specified.public final L getLane()