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 Summary
Constructors Constructor Description HashvalueAlgorithm()
-
Method Summary
-
Constructor Details
-
HashvalueAlgorithm
public HashvalueAlgorithm()
-
-
Method Details
-
isValid
public boolean isValid()This algorithm doesn't need any configuration. Therefore it's always valid. -
getValue
public 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. -
toString
public java.lang.String toString()Override Object.toString().- Overrides:
toString
in classjava.lang.Object
- Returns:
- information about this comparator
-