public class DerbyVersion
extends java.lang.Object
implements java.lang.Comparable
This class doesn't consider the alpha/beta flag nor the revision number.
Modifier and Type | Field and Description |
---|---|
static DerbyVersion |
_10_0 |
static DerbyVersion |
_10_0_2_1
10.0.2.1 (incubator release)
|
static DerbyVersion |
_10_1 |
static DerbyVersion |
_10_1_1_0
10.1.1.0 (Aug 3, 2005 / SVN 208786)
|
static DerbyVersion |
_10_1_2_1
10.1.2.1 (Nov 18, 2005 / SVN 330608)
|
static DerbyVersion |
_10_1_3_1
10.1.3.1 (Jun 30, 2006 / SVN 417277)
|
static DerbyVersion |
_10_10 |
static DerbyVersion |
_10_2 |
static DerbyVersion |
_10_2_1_6
10.2.1.6 (Oct 02, 2006 / SVN 452058)
|
static DerbyVersion |
_10_2_2_0
10.2.2.0 (Dec 12, 2006 / SVN 485682)
|
static DerbyVersion |
_10_3 |
static DerbyVersion |
_10_3_1_4
10.3.1.4 (Aug 1, 2007 / SVN 561794)
|
static DerbyVersion |
_10_3_3_0
10.3.3.0 (May 12, 2008 / SVN 652961)
|
static DerbyVersion |
_10_4 |
static DerbyVersion |
_10_4_1_3
10.4.1.3 (April 24, 2008 / SVN 648739)
|
static DerbyVersion |
_10_4_2_0
10.4.2.0 (September 05, 2008 / SVN 693552)
|
static DerbyVersion |
_10_5 |
static DerbyVersion |
_10_5_1_1
10.5.1.1 (April 28, 2009 / SVN 764942)
|
static DerbyVersion |
_10_5_3_0
10.5.3.0 (August 21, 2009 / SVN 802917)
|
static DerbyVersion |
_10_6 |
static DerbyVersion |
_10_6_1_0
10.6.1.0 (May 18, 2010/ SVN 938214)
|
static DerbyVersion |
_10_6_2_1
10.6.2.1 (Oct 6, 2010/ SVN 999685)
|
static DerbyVersion |
_10_7 |
static DerbyVersion |
_10_7_1_1
10.7.1.1 (December 14, 2010/ SVN 1040133)
|
static DerbyVersion |
_10_8 |
static DerbyVersion |
_10_8_1_2
10.8.1.2 (April 29, 2011/ SVN 1095077)
|
static DerbyVersion |
_10_8_2_2
10.8.2.2 (October 24, 2011/ SVN 1181258)
|
static DerbyVersion |
_10_8_3_0
10.8.3.0 (November 16, 2012/ SVN 1405108)
|
static DerbyVersion |
_10_9 |
static DerbyVersion |
_10_9_1_0
10.9.1.0 (June 25, 2012/ SVN 1344872)
|
private int |
fixpack |
private int |
major |
private int |
minor |
private int |
point |
private Version |
simpleVersion |
Constructor and Description |
---|
DerbyVersion(int major,
int minor,
int fixpack,
int point) |
Modifier and Type | Method and Description |
---|---|
Version |
asSimpleVersion()
Returns a simplified view of this version, where only the major and the
minor versions are included.
|
boolean |
atLeast(DerbyVersion other)
Checks if this version is at the same or higher level as the other
version.
|
boolean |
atMajorMinor(int major,
int minor)
Checks if this version is at the same major and minor level as the other
version.
|
boolean |
atMajorMinorOf(DerbyVersion other)
Checks if this version is at the same major and minor level as the other
version.
|
boolean |
atMost(DerbyVersion other)
Checks if this version is at the same or lower level as the other
version.
|
int |
compareTo(DerbyVersion o) |
int |
compareTo(java.lang.Object o) |
boolean |
equals(java.lang.Object obj) |
int |
getFixpack() |
int |
getMajor() |
int |
getMinor() |
int |
getPoint() |
boolean |
greaterMinorThan(DerbyVersion other)
Checks if this version is at a greater minor level than the other
version.
|
boolean |
greaterThan(DerbyVersion other) |
int |
hashCode() |
boolean |
lessThan(DerbyVersion other) |
static DerbyVersion |
parseVersionString(java.lang.String versionString)
Parses the given string as a Derby version.
|
private boolean |
sameMajorAs(DerbyVersion other)
Checks if the major level of this version is the same as for the other
version.
|
java.lang.String |
toString() |
public static final DerbyVersion _10_0
public static final DerbyVersion _10_1
public static final DerbyVersion _10_2
public static final DerbyVersion _10_3
public static final DerbyVersion _10_4
public static final DerbyVersion _10_5
public static final DerbyVersion _10_6
public static final DerbyVersion _10_7
public static final DerbyVersion _10_8
public static final DerbyVersion _10_9
public static final DerbyVersion _10_10
public static final DerbyVersion _10_0_2_1
public static final DerbyVersion _10_1_1_0
public static final DerbyVersion _10_1_2_1
public static final DerbyVersion _10_1_3_1
public static final DerbyVersion _10_2_1_6
public static final DerbyVersion _10_2_2_0
public static final DerbyVersion _10_3_1_4
public static final DerbyVersion _10_3_3_0
public static final DerbyVersion _10_4_1_3
public static final DerbyVersion _10_4_2_0
public static final DerbyVersion _10_5_1_1
public static final DerbyVersion _10_5_3_0
public static final DerbyVersion _10_6_1_0
public static final DerbyVersion _10_6_2_1
public static final DerbyVersion _10_7_1_1
public static final DerbyVersion _10_8_1_2
public static final DerbyVersion _10_8_2_2
public static final DerbyVersion _10_8_3_0
public static final DerbyVersion _10_9_1_0
private final int major
private final int minor
private final int fixpack
private final int point
private final Version simpleVersion
public static DerbyVersion parseVersionString(java.lang.String versionString) throws java.lang.IllegalArgumentException
versionString
- the string to parse, for instance "10.7.1.1" or
"10.9.0.0 alpha - (1180861M)"java.lang.IllegalArgumentException
- if the specified version string cannot
be parsedpublic int getMajor()
public int getMinor()
public int getFixpack()
public int getPoint()
public boolean lessThan(DerbyVersion other)
public boolean greaterThan(DerbyVersion other)
public boolean greaterMinorThan(DerbyVersion other)
other
- version to compare withtrue
if the minor level is greater, false
if the
minor level is the same or smaller.java.lang.IllegalArgumentException
- if the major level of the two versions
are unequalpublic boolean atLeast(DerbyVersion other)
other
- version to compare withtrue
if this version is equal to or higher than
other
, false
otherwise.public boolean atMost(DerbyVersion other)
other
- version to compare withtrue
if this version is equal to or lower than
other
, false
otherwise.public boolean atMajorMinor(int major, int minor)
major
- major level to compare withminor
- minor level to compare withtrue
if major and minor level of the two versions are
the same, false
otherwise.public boolean atMajorMinorOf(DerbyVersion other)
other
- version to compare withtrue
if major and minor level of the two versions are
the same, false
otherwise.public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public int compareTo(DerbyVersion o)
public Version asSimpleVersion()
Introduced for compatibility with existing/older test code.
private boolean sameMajorAs(DerbyVersion other)
other
- version to compare withtrue
if the major levels match, false
otherwise.Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.