public static Iterable < BoxCollection . Info > getAllCollections ( final BoxAPIConnection api ) { return new Iterable < BoxCollection . Info > ( ) { public Iterator < BoxCollection . Info > iterator ( ) { URL url = GET_COLLECTIONS_URL_TEMPLATE . build ( api . getBaseURL ( ) ) ; return new BoxCollectionIterator ( api , url ) ; } } ; }
Gets an iterable of all the collections for the given user .