You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by zh...@gmail.com on 2010/05/15 03:31:05 UTC

Un-deprecate nonpaged RestfullCollection (issue1199044)

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;
    }