net.sourceforge.jaulp.file.compare
Class FileContentResultBean

java.lang.Object
  extended by net.sourceforge.jaulp.file.compare.FileCompareResultBean
      extended by net.sourceforge.jaulp.file.compare.FileContentResultBean
All Implemented Interfaces:
IFileCompareResultBean, IFileContentResultBean

public class FileContentResultBean
extends FileCompareResultBean
implements IFileContentResultBean

Bean that tells if the content from the given files are equal.

Version:
1.0
Author:
Asterios Raptis

Field Summary
 
Fields inherited from class net.sourceforge.jaulp.file.compare.FileCompareResultBean
compare, source
 
Constructor Summary
FileContentResultBean(java.io.File source, java.io.File compare)
          Default constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
          Returns true if this FileContentResultBean is the same as the o argument.
 boolean getContentEquality()
          Gets the content equality.
 void setContentEquality(boolean contentEquality)
          Sets the content equality.
 
Methods inherited from class net.sourceforge.jaulp.file.compare.FileCompareResultBean
getAbsolutePathEquality, getFileExtensionEquality, getFileToCompare, getLastModifiedEquality, getLengthEquality, getNameEquality, getSourceFile, setAbsolutePathEquality, setFileExtensionEquality, setLastModifiedEquality, setLengthEquality, setNameEquality
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.jaulp.file.compare.interfaces.IFileCompareResultBean
getAbsolutePathEquality, getFileExtensionEquality, getFileToCompare, getLastModifiedEquality, getLengthEquality, getNameEquality, getSourceFile, setAbsolutePathEquality, setFileExtensionEquality, setLastModifiedEquality, setLengthEquality, setNameEquality
 

Constructor Detail

FileContentResultBean

public FileContentResultBean(java.io.File source,
                             java.io.File compare)
Default constructor.

Parameters:
source -
compare -
Method Detail

getContentEquality

public boolean getContentEquality()
Gets the content equality.

Specified by:
getContentEquality in interface IFileContentResultBean
Returns:
the content equality
See Also:
IFileContentResultBean.getContentEquality()

setContentEquality

public void setContentEquality(boolean contentEquality)
Sets the content equality.

Specified by:
setContentEquality in interface IFileContentResultBean
Parameters:
contentEquality - the new content equality
See Also:
IFileContentResultBean.setContentEquality(boolean)

equals

public boolean equals(java.lang.Object o)
Returns true if this FileContentResultBean is the same as the o argument.

Overrides:
equals in class FileCompareResultBean
Returns:
true if this FileContentResultBean is the same as the o argument.


Copyright © 2010. All Rights Reserved.