code: public static Iterable<BoxCollaborationWhitelist.Info> getAll(final BoxAPIConnection api, int limit,
                                                                    String ... fields) {
  
          QueryStringBuilder builder = new QueryStringBuilder();
          if (fields.length > 0) {
              builder.appendParam("fields", fields);
          }
  
          URL url = COLLABORATION_WHITELIST_ENTRIES_URL_TEMPLATE.buildWithQuery(api.getBaseURL(), builder.toString());
          return new BoxResourceIterable<BoxCollaborationWhitelist.Info>(api, url, limit) {
  
              @Override
              protected BoxCollaborationWhitelist.Info factory(JsonObject jsonObject) {
                  BoxCollaborationWhitelist whitelist = new BoxCollaborationWhitelist(
                          api, jsonObject.get("id").asString());
  
                  return whitelist.new Info(jsonObject);
              }
          };
      }
docs: Returns all the collaboration whitelisting with specified filters.
  @param api       the API connection to be used by the resource.
  @param limit     the limit of items per single response. The default value is 100.
  @param fields    the fields to retrieve.
  @return an iterable with all the collaboration whitelists met search conditions.