Package com.uc4.api.objects
Class DeactivateCondition
- java.lang.Object
 - 
- com.uc4.api.objects.DeactivateCondition
 
 
- 
public class DeactivateCondition extends java.lang.ObjectThis class contains deactivate condititions. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeactivateCondition.TypeType of the deactivate condition. 
- 
Constructor Summary
Constructors Constructor Description DeactivateCondition(DeactivateCondition.Type type)Creates a new instance of a deactivate condition. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)intgetDelay()Returns the delay for deactivation.DeactivateCondition.TypegetType()Deactivate option.TaskStategetWhen()Returns the status for the error-free execution.inthashCode()voidsetDelay(int delay)Sets the delay for deactivation.voidsetWhen(TaskState when)Sets the status for the error-free execution.java.lang.StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
DeactivateCondition
public DeactivateCondition(DeactivateCondition.Type type)
Creates a new instance of a deactivate condition.- Parameters:
 type- One of the enum constants defined in this class
 
 - 
 
- 
Method Detail
- 
getDelay
public int getDelay()
Returns the delay for deactivation.- Returns:
 - Delay for deactivation
 
 
- 
setDelay
public void setDelay(int delay)
Sets the delay for deactivation.- Parameters:
 delay- Delay for deactivation
 
- 
getType
public DeactivateCondition.Type getType()
Deactivate option.- Returns:
 - one of the enumeration constants defined in this class, never 
null 
 
- 
getWhen
public TaskState getWhen()
Returns the status for the error-free execution.- Returns:
 - Status for the error-free execution or 
nullif not set 
 
- 
setWhen
public void setWhen(TaskState when)
Sets the status for the error-free execution.- Parameters:
 when- Status for the error-free execution ornullto clear the status
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
- 
equals
public boolean equals(java.lang.Object obj)
- Overrides:
 equalsin classjava.lang.Object
 
 - 
 
 -