aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/util/VersionNumber.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-02-26 18:10:53 +0100
committerSven Gothel <[email protected]>2011-02-26 18:10:53 +0100
commit837e90f090cf1627ad2897ecc1e9be428e0e3d43 (patch)
tree8a6fdd5aca35571aea852c5b19b03131275636ae /src/java/com/jogamp/common/util/VersionNumber.java
parent45788d1f3264725ba2e2f31f4b56d492e265b67c (diff)
parentbe26200a6d2fbeff6df49aada0bcf7cad91fe64f (diff)
Merge remote-tracking branch 'remotes/mbien/master'
Diffstat (limited to 'src/java/com/jogamp/common/util/VersionNumber.java')
-rw-r--r--src/java/com/jogamp/common/util/VersionNumber.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/java/com/jogamp/common/util/VersionNumber.java b/src/java/com/jogamp/common/util/VersionNumber.java
index f0ba820..7e86e72 100644
--- a/src/java/com/jogamp/common/util/VersionNumber.java
+++ b/src/java/com/jogamp/common/util/VersionNumber.java
@@ -42,6 +42,7 @@ public class VersionNumber implements Comparable {
protected VersionNumber() { }
+ @Override
public final int hashCode() {
// 31 * x == (x << 5) - x
int hash = 31 + major;
@@ -49,6 +50,7 @@ public class VersionNumber implements Comparable {
return ((hash << 5) - hash) + sub;
}
+ @Override
public final boolean equals(Object o) {
return 0 == compareTo(o);
}
@@ -88,6 +90,7 @@ public class VersionNumber implements Comparable {
return sub;
}
+ @Override
public String toString() {
return major + "." + minor + "." + sub ;
}