Package com.android.testutils
Enum VirtualTimeRepeatKind
- java.lang.Object
-
- java.lang.Enum<VirtualTimeRepeatKind>
-
- com.android.testutils.VirtualTimeRepeatKind
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<VirtualTimeRepeatKind>
public enum VirtualTimeRepeatKind extends java.lang.Enum<VirtualTimeRepeatKind>
Used in theVirtualTimeSchedulerandVirtualTimeFutureto determine if and how the scheduled job should be repeated.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VirtualTimeRepeatKindvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static VirtualTimeRepeatKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final VirtualTimeRepeatKind NONE
Single time execution only.
-
RATE
public static final VirtualTimeRepeatKind RATE
Reschedule at the same interval, when the action starts.
-
DELAY
public static final VirtualTimeRepeatKind DELAY
Reschedule at the same interval, after the action completes.
-
-
Method Detail
-
values
public static VirtualTimeRepeatKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (VirtualTimeRepeatKind c : VirtualTimeRepeatKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VirtualTimeRepeatKind valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-