public synchronized Set < Evidence > getEvidence ( EvidenceType type ) { if ( null != type ) { switch ( type ) { case VENDOR : return Collections . unmodifiableSet ( new HashSet <> ( vendors ) ) ; case PRODUCT : return Collections . unmodifiableSet ( new HashSet <> ( products ) ) ; case VERSION : return Collections . unmodifiableSet ( new HashSet <> ( versions ) ) ; default : break ; } } return null ; }
Returns the unmodifiable set of evidence of the given type .