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.NumberFormatException
public 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.Comparable
public int compareTo(Version that)
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.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.