public static boolean isBlackListed(@Nonnull Size size,@Nonnull String blacklistString){
  String[] blacklistStringArray=blacklistString.split(",");
  if (blacklistStringArray.length == 0) {
    return false;
  }
  Set<String> blacklistedSizes=new HashSet(Lists.newArrayList(blacklistStringArray));
  return isBlackListed(size,blacklistedSizes);
}

public static boolean isBlackListed ( @ Nonnull Size size , @ Nonnull String blacklistString ) { String [ ] blacklistStringArray = blacklistString . split ( "," ) ; if ( blacklistStringArray . length == 0 ) { return false ; } Set < String > blacklistedSizes = new HashSet ( Lists . newArrayList ( blacklistStringArray ) ) ; return isBlackListed ( size , blacklistedSizes ) ; }
returns whether the given size is within the blacklist string .
