![JAR search and dependency download from the Maven repository](/logo.png)
com.github.alexmojaki.caseclasses.NamesBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of case-classes Show documentation
Show all versions of case-classes Show documentation
A framework to refactor computing a result from an aggregate object.
The newest version!
package com.github.alexmojaki.caseclasses;
import java.util.ArrayList;
import java.util.List;
class NamesBuilder extends AbstractResultBuilder {
private List list = new ArrayList();
public static List getNameList(CaseClass obj) {
NamesBuilder builder = new NamesBuilder();
obj.buildResult(builder);
return builder.list;
}
@Override
protected void simpleAdd(String name, Object value) {
list.add(name);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy