public static enum Base64Benchmark.Data extends java.lang.Enum<Base64Benchmark.Data>
Enum Constant and Description |
---|
big
Big data (1MB)
|
medium
Medium data (4KB)
|
small
Small data (16 bytes).
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBase64()
Get the encoded data as string.
|
byte[] |
getData()
Get the data to encode
|
static Base64Benchmark.Data |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Base64Benchmark.Data[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Base64Benchmark.Data small
public static final Base64Benchmark.Data medium
public static final Base64Benchmark.Data big
public static Base64Benchmark.Data[] values()
for (Base64Benchmark.Data c : Base64Benchmark.Data.values()) System.out.println(c);
public static Base64Benchmark.Data valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getBase64()
public byte[] getData()
Copyright © 2004–2024 XStream. All rights reserved.