public class DeactivateCondition
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DeactivateCondition.Type
Type of the deactivate condition.
|
Constructor and Description |
---|
DeactivateCondition(DeactivateCondition.Type type)
Creates a new instance of a deactivate condition.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
getDelay()
Returns the delay for deactivation.
|
DeactivateCondition.Type |
getType()
Deactivate option.
|
TaskState |
getWhen()
Returns the status for the error-free execution.
|
int |
hashCode() |
void |
setDelay(int delay)
Sets the delay for deactivation.
|
void |
setWhen(TaskState when)
Sets the status for the error-free execution.
|
java.lang.String |
toString() |
public DeactivateCondition(DeactivateCondition.Type type)
type
- One of the enum constants defined in this classpublic int getDelay()
public void setDelay(int delay)
delay
- Delay for deactivationpublic DeactivateCondition.Type getType()
null
public TaskState getWhen()
null
if not setpublic void setWhen(TaskState when)
when
- Status for the error-free execution or null
to clear the statuspublic java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object