public final class Util extends Object
| Modifier and Type | Method and Description |
|---|---|
static Benchmark |
deserialize(byte[] bytes) |
static long |
parseLong(CharSequence string) |
static long |
parseLong(CharSequence string,
int begin,
int end) |
static long |
parseLong(CharSequence string,
int begin,
int end,
long defaultValue) |
static long |
parseToMillis(String time) |
static long |
parseToNanos(String time) |
static byte[] |
serialize(Benchmark benchmark) |
static byte[] |
toByteArray(InputStream stream) |
public static long parseToNanos(String time)
public static long parseToMillis(String time)
public static byte[] serialize(Benchmark benchmark) throws IOException
IOExceptionpublic static Benchmark deserialize(byte[] bytes) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic static long parseLong(CharSequence string)
public static long parseLong(CharSequence string, int begin, int end)
public static long parseLong(CharSequence string, int begin, int end, long defaultValue)
public static byte[] toByteArray(InputStream stream) throws IOException
IOExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.