Reviewers: shindig.remailer_gmail.com, Paul Lindner,

Description:

Add back the constructor which is just a helper constructor to create
RestfullCollection without paging.


Please review this at http://codereview.appspot.com/1199044/show

Affected files:
java/common/src/main/java/org/apache/shindig/protocol/RestfulCollection.java


### Eclipse Workspace Patch 1.0
#P shindig-project
Index: java/common/src/main/java/org/apache/shindig/protocol/RestfulCollection.java
===================================================================
--- java/common/src/main/java/org/apache/shindig/protocol/RestfulCollection.java (revision 944496) +++ java/common/src/main/java/org/apache/shindig/protocol/RestfulCollection.java (working copy)
@@ -60,6 +60,10 @@
     this.itemsPerPage = Math.min(itemsPerPage, totalResults);
   }

+ public RestfulCollection(List<T> entry, int startIndex, int totalResults) {
+    this(entry, startIndex, totalResults, entry.size());
+  }
+
   public List<T> getEntry() {
     return entry;
   }


Reply via email to