org.prorefactor.refactor
Class FileTarget

java.lang.Object
  extended by org.prorefactor.refactor.FileTarget
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class FileTarget
extends java.lang.Object
implements java.lang.Comparable, java.io.Serializable

A simple, sortable data structure for file, line, and column. I use this as a key for JDBM records.

See Also:
Serialized Form

Field Summary
 int column
           
 java.lang.String filename
           
 int line
           
 
Constructor Summary
FileTarget(java.lang.String filename, int line, int column)
          Filename used for sorting as input, so you might want to input canonicalpath.
 
Method Summary
 int compareTo(java.lang.Object o2)
           
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

filename

public java.lang.String filename

line

public int line

column

public int column
Constructor Detail

FileTarget

public FileTarget(java.lang.String filename,
                  int line,
                  int column)
Filename used for sorting as input, so you might want to input canonicalpath.

Method Detail

compareTo

public int compareTo(java.lang.Object o2)
Specified by:
compareTo in interface java.lang.Comparable

equals

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

hashCode

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

toString

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


Copyright © 2008 Joanju Software. All Rights Reserved.