Package org.apache.tools.ant.taskdefs
Class WaitFor.Unit
java.lang.Object
org.apache.tools.ant.types.EnumeratedAttribute
org.apache.tools.ant.taskdefs.WaitFor.Unit
- Enclosing class:
- WaitFor
The enumeration of units:
 millisecond, second, minute, hour, day, week
- To do:
- we use timestamps in many places, why not factor this out
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringday stringstatic final Stringhour stringstatic final Stringmillisecond stringstatic final Stringminute stringstatic final Stringsecond stringstatic final Stringweek stringFields inherited from class org.apache.tools.ant.types.EnumeratedAttributevalue
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionlongConvert the value to a multiplier (millisecond to unit).String[]This is the only method a subclass needs to implement.Methods inherited from class org.apache.tools.ant.types.EnumeratedAttributecontainsValue, getIndex, getInstance, getValue, indexOfValue, setValue, toString
- 
Field Details- 
MILLISECONDmillisecond string- See Also:
 
- 
SECONDsecond string- See Also:
 
- 
MINUTEminute string- See Also:
 
- 
HOURhour string- See Also:
 
- 
DAYday string- See Also:
 
- 
WEEKweek string- See Also:
 
 
- 
- 
Constructor Details- 
Unitpublic Unit()Constructor the Unit enumerated type.
 
- 
- 
Method Details- 
getMultiplierpublic long getMultiplier()Convert the value to a multiplier (millisecond to unit).- Returns:
- a multiplier (a long value)
 
- 
getValuesDescription copied from class:EnumeratedAttributeThis is the only method a subclass needs to implement.- Specified by:
- getValuesin class- EnumeratedAttribute
- Returns:
- an array holding all possible values of the enumeration.
 The order of elements must be fixed so that indexOfValue(String)always return the same index for the same value.
- See Also:
 
 
-