org.gjt.rec.version
Class ClassRevision
java.lang.Object
|
+--org.gjt.rec.version.ClassRevision
- All Implemented Interfaces:
- Comparable
- public final class ClassRevision
- extends Object
- implements Comparable
A ClassRevision holds the name of a class and its revision number.
- Author:
- Neil Stockbridge
COPYRIGHT
public static final String COPYRIGHT
- See Also:
- Constant Field Values
LICENSE
public static final String LICENSE
- See Also:
- Constant Field Values
REVISION
public static final String REVISION
- See Also:
- Constant Field Values
ClassRevision
public ClassRevision(String className,
String revision)
- Constructs a new ClassRevision object.
- Parameters:
className
- the fully qualified name of the classrevision
- the value from the REVISION field of the class
- Throws:
NullPointerException
- if either argument is null
getClassName
public String getClassName()
getRevision
public String getRevision()
compareTo
public int compareTo(Object obj)
- Specified by:
compareTo
in interface Comparable
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object