private boolean hasTriggerMisfired(Trigger trigger){
  long now=System.currentTimeMillis();
  Date nextFireTime=trigger.getNextFireTime();
  if (nextFireTime.getTime() <= (now - misfireThreshold)) {
    return true;
  }
  return false;
}

private boolean hasTriggerMisfired ( Trigger trigger ) { long now = System . currentTimeMillis ( ) ; Date nextFireTime = trigger . getNextFireTime ( ) ; if ( nextFireTime . getTime ( ) <= ( now - misfireThreshold ) ) { return true ; } return false ; }
returns true if a trigger has misfired , false otherwise .
