Save This Page
Home » apache-ant-1.8.1 » org.apache.tools » ant » types » [javadoc | source]
org.apache.tools.ant.types
public class: TimeComparison [javadoc | source]
java.lang.Object
   org.apache.tools.ant.types.EnumeratedAttribute
      org.apache.tools.ant.types.TimeComparison

Direct Known Subclasses:
    TimeComparisons

EnumeratedAttribute for time comparisons. Accepts values "before", "after", "equal".
Field Summary
public static final  TimeComparison BEFORE    Before Comparison. 
public static final  TimeComparison AFTER    After Comparison. 
public static final  TimeComparison EQUAL    Equal Comparison. 
Fields inherited from org.apache.tools.ant.types.EnumeratedAttribute:
value
Constructor:
 public TimeComparison() 
 public TimeComparison(String value) 
    Construct a new TimeComparison with the specified value.
    Parameters:
    value - the EnumeratedAttribute value.
Method from org.apache.tools.ant.types.TimeComparison Summary:
compare,   compare,   evaluate,   evaluate,   getValues
Methods from org.apache.tools.ant.types.EnumeratedAttribute:
containsValue,   getIndex,   getInstance,   getValue,   getValues,   indexOfValue,   setValue,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tools.ant.types.TimeComparison Detail:
 public static int compare(long t1,
    long t2) 
    Compare two times.
 public static int compare(long t1,
    long t2,
    long g) 
    Compare two times.
 public boolean evaluate(long t1,
    long t2) 
    Evaluate two times against this TimeComparison.
 public boolean evaluate(long t1,
    long t2,
    long g) 
    Evaluate two times against this TimeComparison.
 public String[] getValues() 
    Return the possible values.