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 |
|---|
Version(int major,
int minor) |
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 Version(int major,
int minor)
public Version(java.lang.String desc)
throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionprivate 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.Comparablepublic java.lang.String toString()
toString in class java.lang.Objectpublic 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.