public boolean hasShutdownHook(Runnable shutdownHook){
  return hooks.contains(shutdownHook);
}

public boolean hasShutdownHook ( Runnable shutdownHook ) { return hooks . contains ( shutdownHook ) ; }
indicates if a shutdownhook is registered or not .
