Code example for Set

Methods: contains

0
         
        if (sha1.contains(digestName))
        { 
            return new SHA1Digest(); 
        } 
        if (md5.contains(digestName))
        { 
            return new MD5Digest(); 
        } 
        // BEGIN android-removed 
        // if (sha224.contains(digestName)) 
        // { 
        //     return new SHA224Digest(); 
        // } 
        // END android-removed 
        if (sha256.contains(digestName))
        { 
            return new SHA256Digest(); 
        } 
        if (sha384.contains(digestName))
        {