public final class Version
extends java.lang.Object
implements java.lang.Comparable
This class assumes that more capable versions compare greater than less capable versions.
DerbyVersion| Constructor and Description |
|---|
Version(int major,
int minor) |
Version(java.lang.String desc) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
atLeast(Version that)
Returns
true if this version is at least as advanced
as the other version. |
int |
compareTo(java.lang.Object o) |
int |
compareTo(Version that) |
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
java.lang.String |
toString() |
Version(int major,
int minor)
public Version(java.lang.String desc)
throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionpublic boolean atLeast(Version that)
true if this version is at least as advanced
as the other version.public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic int compareTo(Version that)
public 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.