org.biins.objectbuilder.builder.AbstractBuilder Maven / Gradle / Ivy
package org.biins.objectbuilder.builder;
import java.util.ArrayList;
import java.util.List;
/**
* @author Martin Janys
*/
public abstract class AbstractBuilder implements Builder {
@Override
public List build(Class type, int count) {
List list = new ArrayList<>(count);
for (int i = 0; i < count; i++) {
list.add(build(type));
reset();
}
return list;
}
void reset() {}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy