public static final class Version.Trajectory
extends java.lang.Object
implements java.lang.Comparable
This is a sequence of Versions. It is the caller's responsibility to determine whether the Versions are in sort order.
| Constructor and Description |
|---|
Trajectory(java.util.ArrayList versionList)
Construct from a list of Versions.
|
Trajectory(Version[] versions)
Construct from an array of Versions.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object other) |
private void |
constructorMinion(Version[] versions) |
boolean |
contains(java.lang.String branchID)
Return true if this Trajectory contains a version from the desired branch.
|
boolean |
contains(Version candidate)
Return true if this Trajectory contains the desired Version.
|
boolean |
endsAt(java.lang.String branchID)
Return true if this Trajectory ends at the desired branch.
|
boolean |
endsAt(Version candidate)
Return true if this Trajectory ends at the desired Version.
|
boolean |
equals(java.lang.Object other) |
Version |
getEndingVersion()
Return the ending Version of this Trajectory.
|
Version |
getVersion(int idx) |
int |
getVersionCount() |
int |
hashCode() |
Version.Trajectory |
sort()
Sort this Trajectory so that the Versions are arranged in ascending
order.
|
boolean |
startsAt(java.lang.String branchID)
Return true if this Trajectory starts at the desired branch.
|
boolean |
startsAt(Version candidate)
Return true if this Trajectory starts at the desired Version.
|
java.lang.String |
toString() |
private Version[] _versions
public Trajectory(java.util.ArrayList versionList)
Construct from a list of Versions.
public Trajectory(Version[] versions)
Construct from an array of Versions.
private void constructorMinion(Version[] versions)
public Version.Trajectory sort()
Sort this Trajectory so that the Versions are arranged in ascending order. Returns this Trajectory after the sort.
public int getVersionCount()
public Version getVersion(int idx)
public Version getEndingVersion()
Return the ending Version of this Trajectory.
public boolean startsAt(Version candidate)
Return true if this Trajectory starts at the desired Version.
public boolean startsAt(java.lang.String branchID)
Return true if this Trajectory starts at the desired branch.
public boolean contains(Version candidate)
Return true if this Trajectory contains the desired Version.
public boolean contains(java.lang.String branchID)
Return true if this Trajectory contains a version from the desired branch.
public boolean endsAt(Version candidate)
Return true if this Trajectory ends at the desired Version.
public boolean endsAt(java.lang.String branchID)
Return true if this Trajectory ends at the desired branch.
public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object other)
compareTo in interface java.lang.Comparablepublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.