public final class Period
extends PersistableValue
It is used by OdiSchedule
to represent several attributes.
TimeUnti
,
OdiSchedule
,
Repetition
Constructor and Description |
---|
Period(int pValue,
TimeUnit pTimeUnit)
Constructs the Period object with specified value and time unit.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
TimeUnit |
getTimeUnit()
Returns the time unit.
|
int |
getValue()
Returns the value.
|
int |
hashCode() |
java.lang.String |
toString() |
public Period(int pValue, TimeUnit pTimeUnit)
pValue
- time valuepTimeUnit
- time unitDomainRuntimeException
- if time unit is null, or time value is
not positive integer.public int getValue()
public TimeUnit getTimeUnit()
public int hashCode()
public boolean equals(java.lang.Object obj)
public java.lang.String toString()