@Test void testBelongsTo() { Assertions.assertTrue(CharacterUtils.belongsTo('b', "abc".toCharArray())); Assertions.assertFalse(CharacterUtils.belongsTo('d', "abc".toCharArray())); }
public static boolean belongsTo(char character, char[]... characters) { for (char[] chars : characters) { if (belongsTo(character, chars)) { return true; } } return false; }
CharacterUtils { public static boolean belongsTo(char character, char[]... characters) { for (char[] chars : characters) { if (belongsTo(character, chars)) { return true; } } return false; } }
CharacterUtils { public static boolean belongsTo(char character, char[]... characters) { for (char[] chars : characters) { if (belongsTo(character, chars)) { return true; } } return false; } private  CharacterUtils(); }
CharacterUtils { public static boolean belongsTo(char character, char[]... characters) { for (char[] chars : characters) { if (belongsTo(character, chars)) { return true; } } return false; } private  CharacterUtils(); static boolean isWhitespace(char c); static int getIndex(char[] characters, char character); static char[] mergeArrays(char[]... arrays); static char[] arrayOf(char... characters); static boolean belongsTo(char character, char[]... characters); static boolean belongsTo(char character, char... characters); }
CharacterUtils { public static boolean belongsTo(char character, char[]... characters) { for (char[] chars : characters) { if (belongsTo(character, chars)) { return true; } } return false; } private  CharacterUtils(); static boolean isWhitespace(char c); static int getIndex(char[] characters, char character); static char[] mergeArrays(char[]... arrays); static char[] arrayOf(char... characters); static boolean belongsTo(char character, char[]... characters); static boolean belongsTo(char character, char... characters); static final char[] DIGITS; static final char[] LETTERS; static final char[] LITERALS; static final char TAB; static final char BACKSPACE; static final char NO_BREAK_SPACE; }