/** * Replaces the photos for the builder. * @param photos {@link java.util.List} of {@link com.facebook.share.model.SharePhoto}s to add. * @return The builder. */ public Builder setPhotos(@Nullable final List<SharePhoto> photos) { this.photos.clear(); this.addPhotos(photos); return this; } }
public static SharePhotoContent.Builder getPhotoContentBuilder() { return new SharePhotoContent.Builder().addPhotos(PHOTO_CONTENT_PHOTOS); }
@Override public Builder readFrom(final SharePhotoContent model) { if (model == null) { return this; } return super. readFrom(model) .addPhotos(model.getPhotos()); }