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 Summary
FieldsModifier and TypeFieldDescriptionstatic String
day stringstatic String
hour stringstatic String
millisecond stringstatic String
minute stringstatic String
second stringstatic String
week stringFields inherited from class org.apache.tools.ant.types.EnumeratedAttribute
value
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Convert 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.EnumeratedAttribute
containsValue, getIndex, getInstance, getValue, indexOfValue, setValue, toString
-
Field Details
-
MILLISECOND
millisecond string- See Also:
- Constant Field Values
-
SECOND
second string- See Also:
- Constant Field Values
-
MINUTE
minute string- See Also:
- Constant Field Values
-
HOUR
hour string- See Also:
- Constant Field Values
-
DAY
day string- See Also:
- Constant Field Values
-
WEEK
week string- See Also:
- Constant Field Values
-
-
Constructor Details
-
Unit
public Unit()Constructor the Unit enumerated type.
-
-
Method Details
-
getMultiplier
public long getMultiplier()Convert the value to a multiplier (millisecond to unit).- Returns:
- a multiplier (a long value)
-
getValues
Description copied from class:EnumeratedAttribute
This is the only method a subclass needs to implement.- Specified by:
getValues
in classEnumeratedAttribute
- 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:
EnumeratedAttribute.getValues()
-