import com.kdubb.retrofitexamples.domain.CustomObject;
@Service
public class CustomFactory {
public CustomObject buildCustomObject() {
CustomObject customObject = new CustomObject();
customObject.setA("a string thing");
customObject.setB(123456);
customObject.setC(true);
customObject.setD(1.23456);
Collection<String> strings = new ArrayList<String>();
for(int i = 1; i < 4; i++)
strings.add("string #" + i);
customObject.setE(strings);
return customObject;
}