Package net.bytebuddy.utility
Class RandomString
- java.lang.Object
-
- net.bytebuddy.utility.RandomString
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_LENGTHThe default length of a randomizedString.
-
Constructor Summary
Constructors Constructor Description RandomString()RandomString(int length)Creates a randomStringprovider where each value is of the given length.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringhashOf(int value)Represents an integer value as a string hash.static Stringmake()Creates a randomStringofDEFAULT_LENGTHlength.static Stringmake(int length)Creates a randomStringof the givenlength.StringnextString()Creates a new randomString.
-
-
-
Field Detail
-
DEFAULT_LENGTH
public static final int DEFAULT_LENGTH
The default length of a randomizedString.- See Also:
- Constant Field Values
-
-
Method Detail
-
make
public static String make()
Creates a randomStringofDEFAULT_LENGTHlength.- Returns:
- A random
String.
-
hashOf
public static String hashOf(int value)
Represents an integer value as a string hash. This string is not technically random but generates a fixed character sequence based on the hash provided.- Parameters:
value- The value to represent as a string.- Returns:
- A string representing the supplied value as a string.
-
-