public final class OptionUtil
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
OptionUtil()
Fake constructor.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.StringBuilder |
describeParameterizable(java.lang.StringBuilder buf,
java.lang.Class<?> pcls,
int width,
java.lang.String indent)
Format a description of a Parameterizable (including recursive options).
|
static void |
formatForConsole(java.lang.StringBuilder buf,
int width,
java.util.Collection<TrackedParameter> options)
Format a list of options (and associated owning objects) for console help
output.
|
static java.lang.String |
getFullDescription(Parameter<?> param)
Format a parameter description.
|
private static void |
println(java.lang.StringBuilder buf,
int width,
java.lang.String data)
Simple writing helper with no indentation.
|
public static void formatForConsole(java.lang.StringBuilder buf, int width, java.util.Collection<TrackedParameter> options)
buf
- Serialization bufferwidth
- Screen widthoptions
- List of optionspublic static java.lang.String getFullDescription(Parameter<?> param)
param
- Parameterprivate static void println(java.lang.StringBuilder buf, int width, java.lang.String data)
buf
- Buffer to write towidth
- Width to use for linewrapsdata
- Data to write.public static java.lang.StringBuilder describeParameterizable(java.lang.StringBuilder buf, java.lang.Class<?> pcls, int width, java.lang.String indent) throws ClassInstantiationException
buf
- Buffer to append to.pcls
- Parameterizable class to describewidth
- Widthindent
- Text indentClassInstantiationException
Copyright © 2019 ELKI Development Team. License information.