public boolean onCooldown(){
  return getCooldownExpiration() >= System.currentTimeMillis();
}

public boolean onCooldown ( ) { return getCooldownExpiration ( ) >= System . currentTimeMillis ( ) ; }
finds out if the notification is on cool down period .
