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<Version> 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<Version> 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.Object
public int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.