public class Util extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Util.Timer
A timer utility for benchmarking.
|
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getRandomBytes(int size)
Generates a random byte[] of given
size. |
static String |
getRandomString(int size)
Generates a random
String of length size using the default
encoding scheme. |
public static String getRandomString(int size)
String of length size using the default
encoding scheme. String content is ASCII characters.size - of the string (character count)Stringpublic static byte[] getRandomBytes(int size)
size.size - of the generated array.Copyright © 2009–2021. All rights reserved.