/** * @param availablePlatforms * @return Returns a reference to this object so that method calls can be chained together. * @see Platform */ public BundleDetails withAvailablePlatforms(java.util.Collection<String> availablePlatforms) { setAvailablePlatforms(availablePlatforms); return this; }
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setAvailablePlatforms(java.util.Collection)} or {@link #withAvailablePlatforms(java.util.Collection)} if * you want to override the existing values. * </p> * * @param availablePlatforms * @return Returns a reference to this object so that method calls can be chained together. * @see Platform */ public BundleDetails withAvailablePlatforms(String... availablePlatforms) { if (this.availablePlatforms == null) { setAvailablePlatforms(new java.util.ArrayList<String>(availablePlatforms.length)); } for (String ele : availablePlatforms) { this.availablePlatforms.add(ele); } return this; }
/** * @param availablePlatforms * @return Returns a reference to this object so that method calls can be chained together. * @see Platform */ public BundleDetails withAvailablePlatforms(Platform... availablePlatforms) { java.util.ArrayList<String> availablePlatformsCopy = new java.util.ArrayList<String>(availablePlatforms.length); for (Platform value : availablePlatforms) { availablePlatformsCopy.add(value.toString()); } if (getAvailablePlatforms() == null) { setAvailablePlatforms(availablePlatformsCopy); } else { getAvailablePlatforms().addAll(availablePlatformsCopy); } return this; }
bundleDetails.setAvailablePlatforms(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context));
/** * @param availablePlatforms * @return Returns a reference to this object so that method calls can be chained together. * @see Platform */ public BundleDetails withAvailablePlatforms(java.util.Collection<String> availablePlatforms) { setAvailablePlatforms(availablePlatforms); return this; }
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setAvailablePlatforms(java.util.Collection)} or {@link #withAvailablePlatforms(java.util.Collection)} if * you want to override the existing values. * </p> * * @param availablePlatforms * @return Returns a reference to this object so that method calls can be chained together. * @see Platform */ public BundleDetails withAvailablePlatforms(String... availablePlatforms) { if (this.availablePlatforms == null) { setAvailablePlatforms(new java.util.ArrayList<String>(availablePlatforms.length)); } for (String ele : availablePlatforms) { this.availablePlatforms.add(ele); } return this; }
/** * @param availablePlatforms * @return Returns a reference to this object so that method calls can be chained together. * @see Platform */ public BundleDetails withAvailablePlatforms(Platform... availablePlatforms) { java.util.ArrayList<String> availablePlatformsCopy = new java.util.ArrayList<String>(availablePlatforms.length); for (Platform value : availablePlatforms) { availablePlatformsCopy.add(value.toString()); } if (getAvailablePlatforms() == null) { setAvailablePlatforms(availablePlatformsCopy); } else { getAvailablePlatforms().addAll(availablePlatformsCopy); } return this; }
bundleDetails.setAvailablePlatforms(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context));