package org.ow2.proactive.scheduler.common;

import java.io.Serializable;
import java.util.List;

public class Page<T extends Serializable> implements Serializable {
    
    private int size;

    private List<T> list;
    
    public Page() {

    }
    
    public Page(List<T> list, int size) {
        this.list = list;
        this.size = size;
    }

    public int getSize() {
        return size;
    }

    public void setSize(final int size) {
        this.size = size;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "TaskPage{" + "size=" + size + ", list='" + list + '\'' + '}';
    }
    
    

}

@@ -67,16 +67,44 @@
 izable;%0A
+import java.util.ArrayList;%0A
 import j
@@ -118,16 +118,16 @@
 l.List;%0A
-
 %0Apublic 
@@ -227,16 +227,21 @@
 private 
+Array
 List%3CT%3E 
@@ -341,28 +341,46 @@
 this.list = 
+new ArrayList%3CT%3E(
 list
+)
 ;%0A        th
@@ -651,20 +651,38 @@
 .list = 
+new ArrayList%3CT%3E(
 list
+)
 ;%0A    %7D%0A

Fix Page.list attribute to be serializable