package org.bytedream.cryptogx; import java.util.TreeMap; /** *
Support class
* * @since 1.3.0 */ public class Utils { public static TreeMapGet all available algorithms
* * @return all available algorithms * * @since 1.12.0 */ private static TreeMapChecks if any character in {@param characters} appears in {@param string}
* * @param characters that should be searched in {@param string} * @param string that should be searched for the characters * @return if any character in {@param characters} appears in {@param string} * * @since 1.3.0 */ public static boolean hasAnyCharacter(CharSequence characters, String string) { for (char c: characters.toString().toCharArray()) { if (string.indexOf(c) != -1) { return false; } } return true; } }