ccvisu
Class ReaderDataGraphCVS.Revision

java.lang.Object
  extended by ccvisu.ReaderDataGraphCVS.Revision
All Implemented Interfaces:
java.lang.Comparable
Enclosing class:
ReaderDataGraphCVS

private class ReaderDataGraphCVS.Revision
extends java.lang.Object
implements java.lang.Comparable

Represents a CVS revision entry (an abstraction of it).

Author:
Dirk Beyer

Field Summary
(package private)  java.lang.String filename
           
(package private)  java.lang.String logmsg
           
(package private)  java.lang.String relName
           
(package private)  java.lang.Long time
           
(package private)  int transaction
          The internal number (id) of the change transaction.
(package private)  java.lang.String user
           
 
Constructor Summary
private ReaderDataGraphCVS.Revision()
           
 
Method Summary
 int compareTo(java.lang.Object o)
          Compares this revision with the specified object for order.
 boolean equals(java.lang.Object o)
          Compares the specified object with this revision for equality.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

relName

java.lang.String relName

filename

java.lang.String filename

time

java.lang.Long time

user

java.lang.String user

logmsg

java.lang.String logmsg

transaction

int transaction
The internal number (id) of the change transaction.

Constructor Detail

ReaderDataGraphCVS.Revision

private ReaderDataGraphCVS.Revision()
Method Detail

compareTo

public int compareTo(java.lang.Object o)
Compares this revision with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o - Object to be compared for order with this revision.
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
Throws:
java.lang.ClassCastException - if the specified object's type prevents it from being compared to this Object.

equals

public boolean equals(java.lang.Object o)
Compares the specified object with this revision for equality. Returns true if the specified object is identical with this object. The method is based on compareTo to make the ordering consistent with equals.

Overrides:
equals in class java.lang.Object
Parameters:
o - Object to be compared for equality with this revision.
Returns:
true if the specified Object is equal to this revision.