Interface RandomUtils
public interface RandomUtils
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionrandomString(int length) Generate a random string using alphanumeric charactersrandomString(int minLength, int maxLength, RandomUtils.CharacterSet... characterSets) Generate a random string using the suppliedRandomUtils.CharacterSetrandomString(int minLength, int maxLength, String chars) Generate a random string using the supplied charactersrandomString(int length, RandomUtils.CharacterSet... characterSets) Generate a random string using the suppliedRandomUtils.CharacterSetrandomString(int length, String chars) Generate a random string using the supplied characters
-
Method Details
-
randomString
Generate a random string using alphanumeric characters- Parameters:
length- length of the resulting random string- Returns:
- randomly generated string
-
randomString
-
randomString
Generate a random string using the suppliedRandomUtils.CharacterSet- Parameters:
length- length of the resulting random stringcharacterSets- the listCharacterSetto use to generate the string- Returns:
- randomly generated string
-
randomString
Generate a random string using the supplied characters- Parameters:
minLength- the inclusive minimum length of the generated stringmaxLength- the inclusive maximum length of the generated stringchars- the characters to use to generate the string- Returns:
- randomly generated string
-
randomString
Generate a random string using the suppliedRandomUtils.CharacterSet- Parameters:
minLength- the inclusive minimum length of the generated stringmaxLength- the inclusive maximum length of the generated stringcharacterSets- the listCharacterSetto use to generate the string- Returns:
- randomly generated string
-