Code example for Set

Methods: isEmpty, remove

0
                   algorithms.add(algorithm.toUpperCase()));
    } 
    private static void unprovide(String type, String algorithm) {
        Set<String> algorithms = PROVIDER_ALGORITHMS.get(type);
        assertNotNull(algorithms);
        assertTrue(algorithm, algorithms.remove(algorithm.toUpperCase()));
        if (algorithms.isEmpty()) {
            assertNotNull(PROVIDER_ALGORITHMS.remove(type));
        } 
    } 
    static { 
        provide("AlgorithmParameterGenerator", "DSA"); 
        provide("AlgorithmParameterGenerator", "DiffieHellman"); 
        provide("AlgorithmParameters", "AES"); 
        provide("AlgorithmParameters", "Blowfish"); 
        provide("AlgorithmParameters", "DES"); 
        provide("AlgorithmParameters", "DESede"); 
        provide("AlgorithmParameters", "DSA"); 
        provide("AlgorithmParameters", "DiffieHellman"); 
        provide("AlgorithmParameters", "OAEP"); 
        provide("AlgorithmParameters", "PBEWithMD5AndDES");