@Test public void testPagedSet() { message = "paged set properties should get correctly"; ArrayList<Object> results = new ArrayList<Object>(); ArrayList<Object> objResults = new ArrayList<Object>(); int start = 0; int end = 1; int total = 3; PagedSet<Object> set = new PagedSet<Object>(start, end, total, results); assertEquals(message, start, set.getFromIndex()); assertEquals(message, end, set.getToIndex()); assertEquals(message, total, set.getTotal()); assertEquals(message, results, set.getPagedSet()); PagedSet<Object> setNeeds = new PagedSet<Object>(start, end, total, objResults); assertEquals(message, start, setNeeds.getFromIndex()); assertEquals(message, end, setNeeds.getToIndex()); assertEquals(message, total, setNeeds.getTotal()); assertEquals(message, results, setNeeds.getPagedSet()); }
public PagedSet() { fromIndex = -1; toIndex = -1; total = 0; pagedSet = new ArrayList<T>(); }
PagedSet implements Serializable { public PagedSet() { fromIndex = -1; toIndex = -1; total = 0; pagedSet = new ArrayList<T>(); } }
PagedSet implements Serializable { public PagedSet() { fromIndex = -1; toIndex = -1; total = 0; pagedSet = new ArrayList<T>(); } PagedSet();  PagedSet(final int from, final int to, final int inTotal, final List<T> set); }
PagedSet implements Serializable { public PagedSet() { fromIndex = -1; toIndex = -1; total = 0; pagedSet = new ArrayList<T>(); } PagedSet();  PagedSet(final int from, final int to, final int inTotal, final List<T> set); boolean isRangeValid(final int from, final int to); int getFromIndex(); void setFromIndex(final int inFromIndex); int getToIndex(); void setToIndex(final int inToIndex); int getTotal(); void setTotal(final int inTotal); List<T> getPagedSet(); void setPagedSet(final List<T> inPagedSet); @SuppressWarnings("unchecked") @Override boolean equals(final Object set); @Override int hashCode(); String getElapsedTime(); void setElapsedTime(final String inElapsedTime); }
PagedSet implements Serializable { public PagedSet() { fromIndex = -1; toIndex = -1; total = 0; pagedSet = new ArrayList<T>(); } PagedSet();  PagedSet(final int from, final int to, final int inTotal, final List<T> set); boolean isRangeValid(final int from, final int to); int getFromIndex(); void setFromIndex(final int inFromIndex); int getToIndex(); void setToIndex(final int inToIndex); int getTotal(); void setTotal(final int inTotal); List<T> getPagedSet(); void setPagedSet(final List<T> inPagedSet); @SuppressWarnings("unchecked") @Override boolean equals(final Object set); @Override int hashCode(); String getElapsedTime(); void setElapsedTime(final String inElapsedTime);  }