io.virtdata.libbasics.shared.stateful.from_long.LoadStringAutoDocsInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of virtdata-lib-realer Show documentation
Show all versions of virtdata-lib-realer Show documentation
With inspiration from other libraries
// This file is auto-generated.
package io.virtdata.libbasics.shared.stateful.from_long;
import io.virtdata.annotations.Category;
import io.virtdata.annotations.Service;
import io.virtdata.processors.DocCtorData;
import io.virtdata.processors.DocForFuncCtor;
import io.virtdata.processors.DocFuncData;
import java.lang.String;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
@Service(DocFuncData.class)
public class LoadStringAutoDocsInfo implements DocFuncData {
public String getClassName() {
return "LoadString";
}
public String getPackageName() {
return "io.virtdata.libbasics.shared.stateful.from_long";
}
public String getClassJavadoc() {
return "Load a value from a named thread-local variable, where the variable\n"
+ "name is fixed or a generated variable name from a provided function.\n"
+ "If the named variable is not defined, then the default value is returned.\n";
}
public String getInType() {
return "long";
}
public String getOutType() {
return "java.lang.String";
}
public Category[] getCategories() {
return new Category[] { Category.state };
}
public List getCtors() {
return new ArrayList() {{
add(new DocForFuncCtor("LoadString", "",
new LinkedHashMap() {{
put("name","java.lang.String");
}},
new ArrayList>() {{
add(new ArrayList() {{
add("LoadString('foo','examplevalue')");
add("for the current thread, load a String value from the named variable.");
}});
}}
));
add(new DocForFuncCtor("LoadString", "",
new LinkedHashMap() {{
put("name","java.lang.String");
put("defaultValue","java.lang.String");
}},
new ArrayList>() {{
add(new ArrayList() {{
add("LoadString('foo','examplevalue')");
add("for the current thread, load a String value from the named variable, or the default value if the named variable is not defined.");
}});
}}
));
add(new DocForFuncCtor("LoadString", "",
new LinkedHashMap() {{
put("nameFunc","java.util.function.LongFunction");
}},
new ArrayList>() {{
add(new ArrayList() {{
add("LoadString(NumberNameToString(),'examplevalue')");
add("for the current thread, load a String value from the named variable, or the default value if the named variable is not defined.");
}});
}}
));
add(new DocForFuncCtor("LoadString", "",
new LinkedHashMap() {{
put("nameFunc","java.util.function.LongFunction");
put("defaultValue","java.lang.String");
}},
new ArrayList>() {{
add(new ArrayList() {{
add("LoadString(NumberNameToString(),'examplevalue')");
add("for the current thread, load a String value from the named variable,where the variable name is provided by a function, or the default value if the namedvariable is not defined.");
}});
}}
));
}};
}
}