| java.lang.Object org.springunit.examples.CompositeTime
CompositeTime | public class CompositeTime implements Comparable<CompositeTime>,Serializable(Code) | | "0 <= this.hours && this.hours <= 23")
"0 <= this.minutes && this.minutes <= 59")
"0 <= this.seconds && this.seconds <= 59")
"0 <= this.millis && this.millis <= 999")
|
CompositeTime | public CompositeTime(int hours, int minutes)(Code) | | Create CompositeTime having hours and minutes.
"0 <= hours && hours <= 23")
"0 <= minutes && minutes <= 59")
Parameters: hours - Parameters: minutes - |
CompositeTime | public CompositeTime(int hours, int minutes, int seconds)(Code) | | Create CompositeTime having hours, minutes and seconds.
"0 <= hours && hours <= 23")
"0 <= minutes && minutes <= 59")
"0 <= seconds && seconds <= 59")
Parameters: hours - Parameters: minutes - Parameters: seconds - |
CompositeTime | public CompositeTime(int hours, int minutes, int seconds, int millis)(Code) | | Create CompositeTime having hours, minutes, seconds and milliseconds.
"0 <= hours && hours <= 23")
"0 <= minutes && minutes <= 59")
"0 <= seconds && seconds <= 59")
"0 <= millis && millis <= 999")
Parameters: hours - Parameters: minutes - Parameters: seconds - Parameters: millis - |
compareTo | public int compareTo(CompositeTime that)(Code) | | Is this less than, equal to, or greater than that?
Parameters: that - Object to be compared with this. boolean |
decrementHours | public boolean decrementHours()(Code) | | Decrement hours.
true if underflow detected, false otherwise |
decrementMillis | public boolean decrementMillis()(Code) | | Decrement milliseconds.
true if underflow detected, false otherwise |
decrementMinutes | public boolean decrementMinutes()(Code) | | Decrement minutes.
true if underflow detected, false otherwise |
decrementSeconds | public boolean decrementSeconds()(Code) | | Decrement seconds.
true if underflow detected, false otherwise |
equals | public boolean equals(Object obj)(Code) | | Is this equal to obj?
|
getHours | public int getHours()(Code) | | Returns the hours. |
getMillis | public int getMillis()(Code) | | Returns the millis. |
getMinutes | public int getMinutes()(Code) | | Returns the minutes. |
getSeconds | public int getSeconds()(Code) | | Returns the seconds. |
hashCode | public int hashCode()(Code) | | Hash code.
|
incrementHours | public boolean incrementHours()(Code) | | Increment hours.
true if overflow detected, false otherwise |
incrementMillis | public boolean incrementMillis()(Code) | | Increment milliseconds.
true if overflow detected, false otherwise |
incrementMinutes | public boolean incrementMinutes()(Code) | | Increment minutes.
true if overflow detected, false otherwise |
incrementSeconds | public boolean incrementSeconds()(Code) | | Increment seconds.
true if overflow detected, false otherwise |
setHours | public void setHours(int hours)(Code) | | "0 <= hours && hours <= 23")
Parameters: hours - The hours to set. |
setMillis | public void setMillis(int millis)(Code) | | "0 <= millis && millis <= 999")
Parameters: millis - The millis to set. |
setMinutes | public void setMinutes(int minutes)(Code) | | "0 <= minutes && minutes <= 59")
Parameters: minutes - The minutes to set. |
setSeconds | public void setSeconds(int seconds)(Code) | | "0 <= seconds && seconds <= 59")
Parameters: seconds - The seconds to set. |
toString | public String toString()(Code) | | String representation.
|
|
|