getStartTime
getStartTime: (Timer) -> InstantWhen it was made.
Timer.new(…)| Method | Returns | Description |
|---|---|---|
getStartTime() | Instant | When it was made. |
getEndTime() | Instant | When it runs out. |
getDuration() | Duration | From start to end. |
setDuration(Duration) | () | Run out duration after the start; raises IllegalArgumentException for a negative one. |
updateDuration(Duration) | () | Run out duration from now; raises IllegalArgumentException for a negative one. |
toString() | string | The text form: Timer(startTime=..., endTime=..., duration=...). |
isInstance(any) | boolean | Whether obj is an instance of this class or a subclass of it, as made with class. |
new(number, ChronoUnit, BufferedImage?, any?) | Timer | A timer of period units from now; raises IllegalArgumentException for a period of 0 or less. |
| Method | Returns | Description |
|---|---|---|
TimerClass.new | Timer | A timer of period units from now; raises IllegalArgumentException for a period of 0 or less. |
getStartTimegetStartTime: (Timer) -> InstantWhen it was made.
getEndTimegetEndTime: (Timer) -> InstantWhen it runs out.
getDurationgetDuration: (Timer) -> DurationFrom start to end.
setDurationsetDuration: (Timer, Duration) -> ()Run out duration after the start; raises IllegalArgumentException for a negative one.
updateDurationupdateDuration: (Timer, Duration) -> ()Run out duration from now; raises IllegalArgumentException for a negative one.
toStringtoString: (Timer) -> stringThe text form: Timer(startTime=..., endTime=..., duration=...).
isInstanceisInstance: (any) -> booleanWhether obj is an instance of this class or a subclass of it, as made with class.
newnew: (number, ChronoUnit, BufferedImage?, any?) -> TimerA timer of period units from now; raises IllegalArgumentException for a period of 0 or less.