Class HashvalueAlgorithm
- java.lang.Object
- 
- org.apache.tools.ant.types.selectors.modifiedselector.HashvalueAlgorithm
 
- 
- All Implemented Interfaces:
- Algorithm
 
 public class HashvalueAlgorithm extends java.lang.Object implements Algorithm Computes a 'hashvalue' for the content of file using String.hashValue(). Use of this algorithm doesn't require any additional nested <param>s and doesn't support any.- Since:
- Ant 1.6
- Version:
- 2003-09-13
 
- 
- 
Constructor SummaryConstructors Constructor Description HashvalueAlgorithm()
 
- 
- 
- 
Method Detail- 
isValidpublic boolean isValid() This algorithm doesn't need any configuration. Therefore it's always valid.
 - 
getValuepublic java.lang.String getValue(java.io.File file) Computes a 'hashvalue' for a file content. It reads the content of a file, convert that to String and use the String.hashCode() method.
 - 
toStringpublic java.lang.String toString() Override Object.toString().- Overrides:
- toStringin class- java.lang.Object
- Returns:
- information about this comparator
 
 
- 
 
-