public class DurationRange
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
This data type is used in the AssessmentTemplateFilter data type.
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
maxSeconds
The maximum value of the duration range.
|
private java.lang.Integer |
minSeconds
The minimum value of the duration range.
|
Constructor and Description |
---|
DurationRange() |
Modifier and Type | Method and Description |
---|---|
DurationRange |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getMaxSeconds()
The maximum value of the duration range.
|
java.lang.Integer |
getMinSeconds()
The minimum value of the duration range.
|
int |
hashCode() |
void |
setMaxSeconds(java.lang.Integer maxSeconds)
The maximum value of the duration range.
|
void |
setMinSeconds(java.lang.Integer minSeconds)
The minimum value of the duration range.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DurationRange |
withMaxSeconds(java.lang.Integer maxSeconds)
The maximum value of the duration range.
|
DurationRange |
withMinSeconds(java.lang.Integer minSeconds)
The minimum value of the duration range.
|
private java.lang.Integer minSeconds
The minimum value of the duration range. Must be greater than zero.
private java.lang.Integer maxSeconds
The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).
public void setMinSeconds(java.lang.Integer minSeconds)
The minimum value of the duration range. Must be greater than zero.
minSeconds
- The minimum value of the duration range. Must be greater than
zero.public java.lang.Integer getMinSeconds()
The minimum value of the duration range. Must be greater than zero.
public DurationRange withMinSeconds(java.lang.Integer minSeconds)
The minimum value of the duration range. Must be greater than zero.
minSeconds
- The minimum value of the duration range. Must be greater than
zero.public void setMaxSeconds(java.lang.Integer maxSeconds)
The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).
maxSeconds
- The maximum value of the duration range. Must be less than or
equal to 604800 seconds (1 week).public java.lang.Integer getMaxSeconds()
The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).
public DurationRange withMaxSeconds(java.lang.Integer maxSeconds)
The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).
maxSeconds
- The maximum value of the duration range. Must be less than or
equal to 604800 seconds (1 week).public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DurationRange clone()
clone
in class java.lang.Object