Modifier and Type | Class and Description |
---|---|
static class |
Version.Trajectory
This is a sequence of Versions.
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
_branchID |
private static java.util.HashMap<java.lang.String,java.lang.ClassLoader> |
_classLoaders |
private java.lang.String |
_key |
private int[] |
_legs |
private static int |
EXPECTED_LEG_COUNT |
Constructor and Description |
---|
Version(int[] legs)
Construct a version from its legs
|
Version(int major,
int minor,
int fixpack,
int bugversion)
Construct a version from four legs
|
Version(org.apache.derby.iapi.services.info.ProductVersionHolder pvh)
Construct from a Derby ProductVersionHolder
|
Modifier and Type | Method and Description |
---|---|
private void |
addClassLoader()
Add the class loader for this version if it doesn't already exist.
|
int |
compareTo(Version other) |
private void |
constructorMinion(int[] legs) |
boolean |
equals(java.lang.Object other) |
java.lang.String |
getBranchID()
Pretty-print the branch id, that is, the major + minor legs of the Version.
|
java.lang.ClassLoader |
getClassLoader()
Get a class loader for this version.
|
private int[] |
getLegs(org.apache.derby.iapi.services.info.ProductVersionHolder pvh) |
int |
hashCode() |
private void |
makeKey()
Make the key for looking up our class loader.
|
java.lang.String |
toString()
Pretty-print this version.
|
private static final int EXPECTED_LEG_COUNT
private int[] _legs
private java.lang.String _key
private java.lang.String _branchID
private static java.util.HashMap<java.lang.String,java.lang.ClassLoader> _classLoaders
public Version(int major, int minor, int fixpack, int bugversion)
public Version(int[] legs)
public Version(org.apache.derby.iapi.services.info.ProductVersionHolder pvh)
private void constructorMinion(int[] legs)
private int[] getLegs(org.apache.derby.iapi.services.info.ProductVersionHolder pvh)
public java.lang.String toString()
Pretty-print this version.
toString
in class java.lang.Object
public java.lang.String getBranchID()
Pretty-print the branch id, that is, the major + minor legs of the Version.
public java.lang.ClassLoader getClassLoader()
Get a class loader for this version.
public int compareTo(Version other)
compareTo
in interface java.lang.Comparable<Version>
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
private void addClassLoader()
Add the class loader for this version if it doesn't already exist.
private void makeKey()
Make the key for looking up our class loader.
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.