Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_LENGTH
The default length of a randomized
String . |
Constructor and Description |
---|
RandomString()
|
RandomString(int length)
Creates a random
String provider where each value is of the given length. |
Modifier and Type | Method and Description |
---|---|
static String |
hashOf(int value)
Represents an integer value as a string hash.
|
static String |
make()
Creates a random
String of DEFAULT_LENGTH length. |
static String |
make(int length)
Creates a random
String of the given length . |
String |
nextString()
Creates a new random
String . |
public static final int DEFAULT_LENGTH
String
.public static String make()
String
of DEFAULT_LENGTH
length.String
.public static String hashOf(int value)
value
- The value to represent as a string.Copyright © 2014–2021. All rights reserved.