org.jutil.junit
Class AbstractRevision

java.lang.Object
  |
  +--org.jutil.junit.AbstractRevision
All Implemented Interfaces:
Revision
Direct Known Subclasses:
CVSRevision

public abstract class AbstractRevision
extends java.lang.Object
implements Revision

A class that implements the non-basic methods of Revision. Subclasses only need implements getNumber(int) and length().

Version:
$Revision: 1.3 $
Author:
Marko van Dooren

Field Summary
static java.lang.String CVS_REVISION
           
 
Constructor Summary
AbstractRevision()
           
 
Method Summary
 boolean equals(java.lang.Object other)
          See superclass.
 int getMajor()
          See superclass
 int getMicro()
          See superclass
 int getMinor()
          See superclass
 java.lang.String toString()
          See superclass
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jutil.junit.Revision
getNumber, length
 

Field Detail

CVS_REVISION

public static final java.lang.String CVS_REVISION
Constructor Detail

AbstractRevision

public AbstractRevision()
Method Detail

getMajor

public int getMajor()
See superclass
Specified by:
getMajor in interface Revision

getMinor

public int getMinor()
See superclass
Specified by:
getMinor in interface Revision

getMicro

public int getMicro()
See superclass
Specified by:
getMicro in interface Revision

equals

public boolean equals(java.lang.Object other)
See superclass.
Specified by:
equals in interface Revision
Overrides:
equals in class java.lang.Object
Following copied from interface: org.jutil.junit.Revision
Parameters:
other - The other revision.

toString

public java.lang.String toString()
See superclass
Overrides:
toString in class java.lang.Object