public static boolean matchesConfiguredImages ( String imageList , ImageConfiguration imageConfig ) { if ( imageList == null ) { return true ; } Set < String > imagesAllowed = new HashSet <> ( Arrays . asList ( imageList . split ( "\\s*,\\s*" ) ) ) ; return imagesAllowed . contains ( imageConfig . getName ( ) ) || imagesAllowed . contains ( imageConfig . getAlias ( ) ) ; }
Check if the provided image configuration matches the given