Mercurial > hg > blitz_stable
comparison src/org/dancres/blitz/txn/LogVersion.java @ 0:3dc0c5604566
Initial checkin of blitz 2.0 fcs - no installer yet.
author | Dan Creswell <dan.creswell@gmail.com> |
---|---|
date | Sat, 21 Mar 2009 11:00:06 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3dc0c5604566 |
---|---|
1 package org.dancres.blitz.txn; | |
2 | |
3 import java.io.Serializable; | |
4 | |
5 class LogVersion implements Serializable { | |
6 static final long serialVersionUID = -6949591955686028824L; | |
7 | |
8 static final LogVersion VERSION = new LogVersion(1, 1); | |
9 | |
10 private int theMajor; | |
11 private int theMinor; | |
12 | |
13 private LogVersion(int aMajor, int aMinor) { | |
14 theMajor = aMajor; | |
15 theMinor = aMinor; | |
16 } | |
17 | |
18 public boolean equals(Object anObject) { | |
19 if (anObject instanceof LogVersion) { | |
20 LogVersion myOther = (LogVersion) anObject; | |
21 | |
22 return ((myOther.theMajor == theMajor) && | |
23 (myOther.theMinor == theMinor)); | |
24 } | |
25 | |
26 return false; | |
27 } | |
28 | |
29 public String toString() { | |
30 return "LogVersion: " + theMajor + "." + theMinor; | |
31 } | |
32 } |