public boolean isActive() {
        return timerService.isStarted() && !isCanceled() && !isExpired() && (timerService.isScheduled(getId()) || timerState == TimerState.CREATED);
    }
public boolean isActive() {
        return timerService.isStarted() && !isCanceled() && !isExpired() && (timerService.isScheduled(getId()) || timerState == TimerState.CREATED);
    }
public boolean isActive ( ) { return timerService . isStarted ( ) && ! isCanceled ( ) && ! isExpired ( ) && ( timerService . isScheduled ( getId ( ) ) || timerState == TimerState . CREATED ) ; }
Returns true if this timer is active. Else returns false.
<p>
A timer is considered to be "active", if its {@link TimerState}
is neither of the following:
<ul>
<li>{@link TimerState#CANCELED}</li>
<li>{@link TimerState#EXPIRED}</li>
<li>has not been suspended</li>
</ul>
<p/>
And if the corresponding timer service is still up
<p/>
</p>

@return
Returns true if this timer is active . Else returns false . <p > A timer is considered to be active if its { @link TimerState } is neither of the following : <ul > <li > { @link TimerState#CANCELED } < / li > <li > { @link TimerState#EXPIRED } < / li > <li > has not been suspended< / li > < / ul > <p / > And if the corresponding timer service is still up <p / > < / p >