|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.utilities.optionhandling.OptionUtil
public final class OptionUtil

Utility functions related to Option handling.
| Constructor Summary | |
|---|---|
OptionUtil()
|
|
| Method Summary | ||
|---|---|---|
static StringBuffer |
describeParameterizable(StringBuffer buf,
Class<?> pcls,
int width,
String indent)
Format a description of a Parameterizable (including recursive options). |
|
static void |
formatForConsole(StringBuffer buf,
int width,
String indent,
Collection<Pair<Object,Parameter<?,?>>> options)
Format a list of options (and associated owning objects) for console help output. |
|
static
|
optionsNamesToString(List<O> options)
Returns a string representation of the specified list of options containing the names of the options. |
|
static
|
optionsNamesToString(O[] options)
Returns a string representation of the specified list of options containing the names of the options. |
|
static
|
parameterNamesAndValuesToString(List<N> parameters)
Returns a string representation of the list of number parameters containing the names and the values of the parameters. |
|
static void |
println(StringBuffer buf,
int width,
String data,
String indent)
Simple writing helper with no indentation. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OptionUtil()
| Method Detail |
|---|
public static <O extends Parameter<?,?>> String optionsNamesToString(List<O> options)
O - Option typeoptions - the list of options
public static <O extends Parameter<?,?>> String optionsNamesToString(O[] options)
O - Option typeoptions - the list of options
public static <N extends Parameter<?,?>> String parameterNamesAndValuesToString(List<N> parameters)
N - Parameter typeparameters - the list of number parameters
public static void formatForConsole(StringBuffer buf,
int width,
String indent,
Collection<Pair<Object,Parameter<?,?>>> options)
buf - Serialization bufferwidth - Screen widthindent - Indentation stringoptions - List of options
public static void println(StringBuffer buf,
int width,
String data,
String indent)
buf - Buffer to write towidth - Width to use for linewrapsdata - Data to write.indent - Indentation
public static StringBuffer describeParameterizable(StringBuffer buf,
Class<?> pcls,
int width,
String indent)
buf - Buffer to append to.pcls - Parameterizable class to describewidth - Widthindent - Text indent
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||