public static final class CompatibilitySuite.Version
extends java.lang.Object
implements java.lang.Comparable
A class for storing a major and minor version number. This class assumes that more capable versions compare greater than less capable versions.
Constructor and Description |
---|
CompatibilitySuite.Version(int major,
int minor) |
CompatibilitySuite.Version(java.lang.String desc) |
Modifier and Type | Method and Description |
---|---|
boolean |
atLeast(CompatibilitySuite.Version that)
Returns true if this Version is at least as advanced
as that Version.
|
int |
compareTo(java.lang.Object other) |
private void |
constructorMinion(int major,
int minor) |
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
java.lang.String |
toString() |
public CompatibilitySuite.Version(int major, int minor)
public CompatibilitySuite.Version(java.lang.String desc) throws java.lang.NumberFormatException
java.lang.NumberFormatException
private void constructorMinion(int major, int minor)
public boolean atLeast(CompatibilitySuite.Version that)
Returns true if this Version is at least as advanced as that Version.
public int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable
public java.lang.String toString()
toString
in class java.lang.Object
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.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.