| 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. | 
RandomString(int length,
            Random random)
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 | 
hashOf(Object value)
Represents a object 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 RandomString()
public RandomString(int length)
String provider where each value is of the given length.length - The length of the random String.public static String make()
String of DEFAULT_LENGTH length.String.public static String hashOf(@MaybeNull Object value)
value - The value to represent as a string or null.public static String hashOf(int value)
value - The value to represent as a string.Copyright © 2014–2022. All rights reserved.