io.virtdata.libbasics.shared.nondeterministic.ThreadNumToIntegerAutoDocsInfo 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.nondeterministic;
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 ThreadNumToIntegerAutoDocsInfo implements DocFuncData {
public String getClassName() {
return "ThreadNumToInteger";
}
public String getPackageName() {
return "io.virtdata.libbasics.shared.nondeterministic";
}
public String getClassJavadoc() {
return "Matches a digit sequence in the current thread name and caches it in a thread local.\n"
+ "This allows you to use any intentionally indexed thread factories to provide an analogue for\n"
+ "concurrency. Note that once the thread number is cached, it will not be refreshed. This means\n"
+ "you can't change the thread name and get an updated value.\n";
}
public String getInType() {
return "long";
}
public String getOutType() {
return "java.lang.Integer";
}
public Category[] getCategories() {
return new Category[] { };
}
public List getCtors() {
return new ArrayList() {{
add(new DocForFuncCtor("ThreadNumToInteger", "",
new LinkedHashMap() {{
}},
new ArrayList>() {{
}}
));
}};
}
}