@SuppressWarnings("deprecation") void notifyAlarmClock(TimerAlarmClockNotification notification){
  TimerNotification timerNotification=null;
  Date timerDate=null;
  TimerAlarmClock alarmClock=(TimerAlarmClock)notification.getSource();
synchronized (Timer.this) {
    for (    Object[] obj : timerTable.values()) {
      if (obj[ALARM_CLOCK_INDEX] == alarmClock) {
        timerNotification=(TimerNotification)obj[TIMER_NOTIF_INDEX];
        timerDate=(Date)obj[TIMER_DATE_INDEX];
        break;
      }
    }
  }
  sendNotification(timerDate,timerNotification);
  updateTimerTable(timerNotification.getNotificationID());
}

@ SuppressWarnings ( "deprecation" ) void notifyAlarmClock ( TimerAlarmClockNotification notification ) { TimerNotification timerNotification = null ; Date timerDate = null ; TimerAlarmClock alarmClock = ( TimerAlarmClock ) notification . getSource ( ) ; synchronized ( Timer . this ) { for ( Object [ ] obj : timerTable . values ( ) ) { if ( obj [ ALARM_CLOCK_INDEX ] == alarmClock ) { timerNotification = ( TimerNotification ) obj [ TIMER_NOTIF_INDEX ] ; timerDate = ( Date ) obj [ TIMER_DATE_INDEX ] ; break ; } } } sendNotification ( timerDate , timerNotification ) ; updateTimerTable ( timerNotification . getNotificationID ( ) ) ; }
this method is called by the timer each time the timeralarmclock has exceeded its timeout .
