public static enum ParserBenchmark.DataFactory extends java.lang.Enum<ParserBenchmark.DataFactory>
Enum Constant and Description |
---|
BigText
A single element with a text of 100.000 characters.
|
ManyChildren
An array with 1.000 elements.
|
NestedElements
Nested list in list structure, 1000 elements deep.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
checkData(java.lang.Object o)
Check the deserialized object.
|
static ParserBenchmark.DataFactory |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ParserBenchmark.DataFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
abstract void |
writeData(HierarchicalStreamWriter writer)
Write the data of the factory into the writer of the hierarchical stream.
|
public static final ParserBenchmark.DataFactory BigText
public static final ParserBenchmark.DataFactory NestedElements
public static final ParserBenchmark.DataFactory ManyChildren
public static ParserBenchmark.DataFactory[] values()
for (ParserBenchmark.DataFactory c : ParserBenchmark.DataFactory.values()) System.out.println(c);
public static ParserBenchmark.DataFactory 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 abstract void writeData(HierarchicalStreamWriter writer)
writer
- the writer of the datapublic abstract void checkData(java.lang.Object o)
o
- the object to checkCopyright © 2004–2024 XStream. All rights reserved.