dss/src/main/java/gov/samhsa/c2s/dss/service/document/redact/base/AbstractRedactionHandler.java
private Set<String> containsAll(List<String> categoriesToRedact, Set<String> factCategories) {
        Set<String> factCategoriesTriggeringRedaction = new HashSet<>();

        if ((categoriesToRedact != null) && (factCategories != null)) {
            if (categoriesToRedact.containsAll(factCategories)) {
                factCategoriesTriggeringRedaction = new HashSet<>(factCategories);
            }
        }

        return factCategoriesTriggeringRedaction;
    }
/**
     * Contains all.
     *
     * @param categoriesToRedact the list of categories to be redacted based on patient consent
     *                           (Note: This set of categories is the complement set of the categories from the patient's actual consent)
     * @param factCategories     the set of categories associated with the particular clinical fact
     * @return a set of categories associated with the particular clinical fact which are triggering redaction of the fact
     */
Contains all.
@param categoriesToRedact the list of categories to be redacted based on patient consent
(Note: This set of categories is the complement set of the categories from the patient's actual consent)
@param factCategories     the set of categories associated with the particular clinical fact
@return a set of categories associated with the particular clinical fact which are triggering redaction of the fact
Contains all . @param categoriesToRedact the list of categories to be redacted based on patient consent ( Note : This set of categories is the complement set of the categories from the patient ' s actual consent ) @param factCategories the set of categories associated with the particular clinical fact @return a set of categories associated with the particular clinical fact which are triggering redaction of the fact
private Set<String> containsAll(List<String> categoriesToRedact, Set<String> factCategories) {
        Set<String> factCategoriesTriggeringRedaction = new HashSet<>();
        if ((categoriesToRedact != null) && (factCategories != null)) {
            if (categoriesToRedact.containsAll(factCategories)) {
                factCategoriesTriggeringRedaction = new HashSet<>(factCategories);
            }
        }
        return factCategoriesTriggeringRedaction;
    }
private Set < String > containsAll ( List < String > categoriesToRedact , Set < String > factCategories ) { Set < String > factCategoriesTriggeringRedaction = new HashSet < > ( ) ; if ( ( categoriesToRedact != null ) && ( factCategories != null ) ) { if ( categoriesToRedact . containsAll ( factCategories ) ) { factCategoriesTriggeringRedaction = new HashSet < > ( factCategories ) ; } } return factCategoriesTriggeringRedaction ; }
Contains all.
Contains all .