@Test void containsNoInvalidCharacter() { assertFalse(CharacterBlacklistUtil.containsInvalidCharacter("example with no invalid characters")); }
public static boolean containsInvalidCharacter(String name) { Set<Character> charBlacklist = getCharBlacklist(); for (char c : name.toCharArray()) { if (charBlacklist.contains(c)) { return true; } } return false; }
CharacterBlacklistUtil { public static boolean containsInvalidCharacter(String name) { Set<Character> charBlacklist = getCharBlacklist(); for (char c : name.toCharArray()) { if (charBlacklist.contains(c)) { return true; } } return false; } }
CharacterBlacklistUtil { public static boolean containsInvalidCharacter(String name) { Set<Character> charBlacklist = getCharBlacklist(); for (char c : name.toCharArray()) { if (charBlacklist.contains(c)) { return true; } } return false; } private  CharacterBlacklistUtil(); }
CharacterBlacklistUtil { public static boolean containsInvalidCharacter(String name) { Set<Character> charBlacklist = getCharBlacklist(); for (char c : name.toCharArray()) { if (charBlacklist.contains(c)) { return true; } } return false; } private  CharacterBlacklistUtil(); static String filterAndReplace(String string); static boolean containsInvalidCharacter(String name); static String encodeName(String name); static String encodePath(String path); static String decodePath(String path); static String decodeName(String name); }
CharacterBlacklistUtil { public static boolean containsInvalidCharacter(String name) { Set<Character> charBlacklist = getCharBlacklist(); for (char c : name.toCharArray()) { if (charBlacklist.contains(c)) { return true; } } return false; } private  CharacterBlacklistUtil(); static String filterAndReplace(String string); static boolean containsInvalidCharacter(String name); static String encodeName(String name); static String encodePath(String path); static String decodePath(String path); static String decodeName(String name);  }