private void addPojoField ( final TypeSpec . Builder classBuilder , final MethodSpec . Builder constructorBuilder , final String fieldName , final TypeName fieldClass ) { classBuilder . addField ( fieldClass , fieldName , Modifier . PRIVATE , Modifier . FINAL ) ; addGetter ( classBuilder , fieldName , fieldClass ) ; addConstructorParameter ( constructorBuilder , fieldName , fieldClass ) ; }
adds field to POJO adds getter and adds parameter to constructor