io.virtdata.libbasics.shared.from_long.to_collection.ListAutoDocsInfo 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.from_long.to_collection;
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 ListAutoDocsInfo implements DocFuncData {
public String getClassName() {
return "List";
}
public String getPackageName() {
return "io.virtdata.libbasics.shared.from_long.to_collection";
}
public String getClassJavadoc() {
return "Create a {@code List} from a long input\n"
+ "based on two functions, the first to\n"
+ "determine the list size, and the second to populate the list with\n"
+ "object values. The input fed to the second function is incremented\n"
+ "between elements.\n"
+ "\n"
+ "To directly create Lists of Strings from the String version of the same\n"
+ "mapping functions, simply use {@link StringList} instead.\n";
}
public String getInType() {
return "long";
}
public String getOutType() {
return "java.util.List";
}
public Category[] getCategories() {
return new Category[] { Category.collections };
}
public List getCtors() {
return new ArrayList() {{
add(new DocForFuncCtor("List", "",
new LinkedHashMap() {{
put("sizeFunc","java.util.function.LongToIntFunction");
put("valueFunc","java.util.function.LongFunction");
}},
new ArrayList>() {{
add(new ArrayList() {{
add("List(HashRange(3,7),Add(15L))");
add("create a list between 3 and 7 elements of Long values");
}});
}}
));
}};
}
}