public long scheduledExecutionTime(){
  if (expired) {
    return -1;
  }
 else {
    return time.getTime();
  }
}

public long scheduledExecutionTime ( ) { if ( expired ) { return - 1 ; } else { return time . getTime ( ) ; } }
returns the time which this headtaskrunnable is scheduled .
