org.apache.tools.ant.types.selectors.modifiedselector
Interface Algorithm
- DigestAlgorithm, HashvalueAlgorithm
public interface Algorithm
The Algorithm defines how a value for a file is computed.
It must be sure that multiple calls for the same file results in the
same value.
The implementing class should implement a useful toString() method.
Version:
- Ant 1.6
String | getValue(File file) - Get the value for a file.
|
boolean | isValid() - Checks its prerequisites.
|
getValue
public String getValue(File file)
Get the value for a file.
file
- File object for which the value should be evaluated.
- The value for that file
isValid
public boolean isValid()
Checks its prerequisites.
- true if all is ok, otherwise false.
Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.