uk.org.retep.util.io
Class SimpleComplexFile

java.lang.Object
  extended by uk.org.retep.util.io.SimpleComplexFile
All Implemented Interfaces:
java.lang.Comparable<ComplexFile>, ComplexFile

public class SimpleComplexFile
extends java.lang.Object
implements ComplexFile, java.lang.Comparable<ComplexFile>

A simple implementation of ComplexFile

Author:
peter

Field Summary
protected  java.io.File destinationFile
           
protected  java.io.File sourceFile
           
 
Constructor Summary
SimpleComplexFile(java.io.File file)
           
SimpleComplexFile(java.io.File sourceFile, java.io.File destinationFile)
           
 
Method Summary
 int compareTo(ComplexFile file)
           
 boolean equals(java.lang.Object obj)
           
 java.io.File getDestinationFile()
           
 java.io.File getSourceFile()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

sourceFile

protected java.io.File sourceFile

destinationFile

protected java.io.File destinationFile
Constructor Detail

SimpleComplexFile

public SimpleComplexFile(java.io.File file)

SimpleComplexFile

public SimpleComplexFile(java.io.File sourceFile,
                         java.io.File destinationFile)
Method Detail

getSourceFile

public java.io.File getSourceFile()
Specified by:
getSourceFile in interface ComplexFile

getDestinationFile

public java.io.File getDestinationFile()
Specified by:
getDestinationFile in interface ComplexFile

compareTo

public int compareTo(ComplexFile file)
Specified by:
compareTo in interface java.lang.Comparable<ComplexFile>

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 © 1998-2010 Retep Development Group. All Rights Reserved.