public final class PasswordUtils extends Object
Modifier and Type | Method and Description |
---|---|
static char[] |
concatArrays(char[] first,
char[]... rest)
Concatenates multiple character arrays together.
|
static int |
countMatchingCharacters(String characters,
String input)
Returns the number of characters in the supplied input that existing from the supplied characters string.
|
static String |
getMatchingCharacters(String characters,
String input)
Returns all the characters in the input string that are also in the characters array.
|
static String |
getMatchingCharacters(String characters,
String input,
int maximumLength)
Returns all the characters in the input string that are also in the characters string.
|
public static String getMatchingCharacters(String characters, String input)
characters
- that contains characters to matchinput
- to search for matchespublic static String getMatchingCharacters(String characters, String input, int maximumLength)
characters
- that contains characters to matchinput
- to search for matchesmaximumLength
- maximum length of matching characterspublic static int countMatchingCharacters(String characters, String input)
characters
- that contains characters to matchinput
- to search for matchespublic static char[] concatArrays(char[] first, char[]... rest)
first
- array to concatenate. Cannot be null.rest
- of the arrays to concatenate. May be null.Copyright © 2003-2024 Virginia Tech. All Rights Reserved.