Code example for Hashtable

Methods: get, remove

0
 
    public void engineDeleteEntry( 
        String  alias) 
        throws KeyStoreException 
    { 
        Object  entry = table.get(alias);
 
        if (entry == null)
        { 
            // BEGIN android-removed 
            // Only throw if there is a problem removing, not if missing 
            // throw new KeyStoreException("no such entry as " + alias); 
            // END android-removed 
            // BEGIN android-added 
            return; 
            // END android-added 
        } 
 
        table.remove(alias);
    } 
 
    public Certificate engineGetCertificate(
        String alias) 
    {