org.apache.commons.jrcs.rcs
Class Line

java.lang.Object
  extended by org.apache.commons.jrcs.rcs.Line

public final class Line
extends java.lang.Object

An annotated line of a revision. Line contains both the original text of the line, plus the node that indicates the revision in which the line was last added or changed. This class is NOT thread safe.

Version:
$Id: Line.java,v 1.3 2003/10/13 07:59:46 rdonkin Exp $
Author:
Juanco Anez
See Also:
Node, Archive

Field Summary
(package private)  Node revision
           
(package private)  java.lang.Object text
           
 
Constructor Summary
Line(Node revision, java.lang.Object text)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
(package private)  Node getRevision()
           
(package private)  java.lang.Object getText()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

revision

Node revision

text

java.lang.Object text
Constructor Detail

Line

Line(Node revision,
     java.lang.Object text)
Method Detail

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getRevision

final Node getRevision()

getText

final java.lang.Object getText()


Copyright 2002 the Apache Software Foundation
Copyright ? 1999-2001 Juancarlo A?ez, Caracas, Venezuela.
All rights reserved
. http://www.suigeneris.org/jrcs