code: public Collection<BoxGroupMembership.Info> getMemberships() {
          final BoxAPIConnection api = this.getAPI();
          final String groupID = this.getID();
  
          Iterable<BoxGroupMembership.Info> iter = new Iterable<BoxGroupMembership.Info>() {
              public Iterator<BoxGroupMembership.Info> iterator() {
                  URL url = MEMBERSHIPS_URL_TEMPLATE.build(api.getBaseURL(), groupID);
                  return new BoxGroupMembershipIterator(api, url);
              }
          };
  
          // We need to iterate all results because this method must return a Collection. This logic should be removed in
          // the next major version, and instead return the Iterable directly.
          Collection<BoxGroupMembership.Info> memberships = new ArrayList<BoxGroupMembership.Info>();
          for (BoxGroupMembership.Info membership : iter) {
              memberships.add(membership);
          }
          return memberships;
      }
docs: Gets information about all of the group memberships for this group.
  Does not support paging.
  @return a collection of information about the group memberships for this group.