/** * @param resources * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectDetails withResources(java.util.Collection<Resource> resources) { setResources(resources); return this; }
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setResources(java.util.Collection)} or {@link #withResources(java.util.Collection)} if you want to * override the existing values. * </p> * * @param resources * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectDetails withResources(Resource... resources) { if (this.resources == null) { setResources(new java.util.ArrayList<Resource>(resources.length)); } for (Resource ele : resources) { this.resources.add(ele); } return this; }
projectDetails.setResources(new ListUnmarshaller<Resource>(ResourceJsonUnmarshaller.getInstance()).unmarshall(context));
/** * @param resources * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectDetails withResources(java.util.Collection<Resource> resources) { setResources(resources); return this; }
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setResources(java.util.Collection)} or {@link #withResources(java.util.Collection)} if you want to * override the existing values. * </p> * * @param resources * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectDetails withResources(Resource... resources) { if (this.resources == null) { setResources(new java.util.ArrayList<Resource>(resources.length)); } for (Resource ele : resources) { this.resources.add(ele); } return this; }
projectDetails.setResources(new ListUnmarshaller<Resource>(ResourceJsonUnmarshaller.getInstance()).unmarshall(context));