Remove all registered {@link TimeUnit} instances. Returns all {@link TimeUnit} instances that were removed.
160773
public List<TimeUnit> clearUnits()
   {
      List<TimeUnit> result = getUnits();
      cachedUnits = null;
      units.clear();
      return result;
   }
1157238
public static void removeAllProviders() {
        Provider[] provider_list = Security.getProviders();

        for (int i = 0; i < provider_list.length; i++) {
            if (provider_list[i] != null) {
                String name = provider_list[i].getName();
                if (name != null) {
                    Security.removeProvider(name);
                }
            }
        }
    }
287357
public function removeAll()
    {
        $this->instance->unlock();
        $result = $this->instance->removeAll();
        $this->instance->lock();
        return $result;
    }
1291162
public function clearTimestamps()
    {
        $path = $this->path . static::BUILD_TIME_FILE;
        if (file_exists($path)) {
            unlink($this->path . static::BUILD_TIME_FILE);
        }
    }
253256
public void removeHandlers() {
    Iterator<HandlerRegistration> it = registrations.iterator();
    while (it.hasNext()) {
      HandlerRegistration r = it.next();

      /*
       * must remove before we call removeHandler. Might have come from nested
       * ResettableEventBus
       */
      it.remove();

      r.removeHandler();
    }
  }
20378
public List<TimeUnit> getUnits()
   {
      if (cachedUnits == null) {
         List<TimeUnit> result = new ArrayList<TimeUnit>(units.keySet());
         Collections.sort(result, new TimeUnitComparator());
         cachedUnits = Collections.unmodifiableList(result);
      }

      return cachedUnits;
   }
184489
public List<T> removeAll(final List<T> toRemove)
	{
		final List<T> removedList = new ArrayList<>();
		for (final T t : toRemove)
		{
			final int index = data.indexOf(t);
			if (index != -1)
			{
				removedList.add(data.remove(index));
			}
		}
		fireTableDataChanged();
		return removedList;
	}
575303
public static void resetAllTimestamps() {
        Map<String, ?> allEntries = QuickUtils.prefs.getAll();
        for (Map.Entry<String, ?> entry : allEntries.entrySet()) {
            if (entry.getKey().startsWith(TIMER_PREFIX)) {
                QuickUtils.prefs.remove(entry.getKey());
            }
        }
    }
97608
private void expungeExpiredEntries() {
        emptyQueue();
        if (lifetime == 0) {
            return;
        }
        int cnt = 0;
        long time = System.currentTimeMillis();
        for (Iterator<CacheEntry<K,V>> t = cacheMap.values().iterator();
                t.hasNext(); ) {
            CacheEntry<K,V> entry = t.next();
            if (entry.isValid(time) == false) {
                t.remove();
                cnt++;
            }
        }
        if (DEBUG) {
            if (cnt != 0) {
                System.out.println("Removed " + cnt
                        + " expired entries, remaining " + cacheMap.size());
            }
        }
    }
510021
public void destroyCleanupTerminatedInstanceTimer() {
        cleanupTerminatedInstancesScheduledFuture.cancel(true);
        cleanupTerminatedInstancesScheduledFuture = null;
        cleanupTerminatedInstancesTimer.shutdown();
        cleanupTerminatedInstancesTimer = null;
    }
895497
public static void removeTimersByJ2EEName(J2EEName j2eeName)
    {
        final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
        if (isTraceOn && tc.isEntryEnabled())
            Tr.entry(tc, "removeTimersByJ2EEName: " + j2eeName);

        Collection<TimerNpImpl> timersToRemove = null;

        // Although this seems inefficient, removing all of the timers for an
        // application or module that is stopping is done in two steps to avoid
        // obtaining locks on both the active timers map and any individual
        // timer concurrently. Many methods on a timer will also need to obtain
        // the lock on the active timers map as well, so the two step approach
        // avoids the possibility of deadlock.                           RTC107334

        synchronized (svActiveTimers)
        {
            if (svActiveTimers.size() > 0)
            {
                String appToRemove = j2eeName.getApplication();
                String modToRemove = j2eeName.getModule();

                for (TimerNpImpl timer : svActiveTimers.values())
                {
                    J2EEName timerJ2EEName = timer.ivBeanId.j2eeName;
                    if (appToRemove.equals(timerJ2EEName.getApplication()) &&
                        (modToRemove == null || modToRemove.equals(timerJ2EEName.getModule())))
                    {
                        // save the timer to be removed outside the active timers map lock
                        if (timersToRemove == null)
                        {
                            timersToRemove = new ArrayList<TimerNpImpl>();
                        }
                        timersToRemove.add(timer);
                    }
                }
            }
        }

        if (timersToRemove != null)
        {
            for (TimerNpImpl timer : timersToRemove)
            {
                timer.remove(true); // permanently remove the timer; cannot be rolled back
            }
        }

        if (isTraceOn && tc.isEntryEnabled())
            Tr.exit(tc, "removeTimersByJ2EEName: removed " + (timersToRemove != null ? timersToRemove.size() : 0));
    }
420901
@Override
    public void clearRegistry() {
        overriddenInstanceStatusMap.clear();
        recentCanceledQueue.clear();
        recentRegisteredQueue.clear();
        recentlyChangedQueue.clear();
        registry.clear();
    }
1373541
public boolean removeAll() {
        lock.lock();
        boolean result = false;

        try {
            result = !uriIndex.isEmpty();
            uriIndex.clear();
        } finally {
            lock.unlock();
        }

        return result;
    }
561461
public java.util.List<String> getRemoveSubnetIds() {
        if (removeSubnetIds == null) {
            removeSubnetIds = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return removeSubnetIds;
    }
838381
public static <T> List<T> removeDuplicates(final List<T> list) {
        final List<Class> registered = Lists.newArrayList();
        final Iterator it = list.iterator();
        while (it.hasNext()) {
            final Class type = it.next().getClass();
            if (registered.contains(type)) {
                it.remove();
            } else {
                registered.add(type);
            }
        }
        return list;
    }
1182416
public synchronized Set<U> removeAll() {

        Set<U> result = new HashSet<U>(m_set);
        m_set.clear();
        return result;
    }
326736
private void cancelTimers(
			List<org.mobicents.slee.example.sjr.data.RegistrationBinding> removedContacts) {
		for (RegistrationBinding binding : removedContacts) {
			ActivityContextInterfaceExt aci = (ActivityContextInterfaceExt) this.activityContextNamingFacility
					.lookup(getACIName(binding.getContactAddress(),
							binding.getSipAddress()));
			// IF exists end the activity, SLEE will cancel timers, remove aci
			// names, etc.
			if (aci != null) {
				((NullActivity) aci.getActivity()).endActivity();
			}
		}
	}