Package br.com.jarch.crud.search
Class Paginator<T>
- java.lang.Object
-
- br.com.jarch.crud.search.Paginator<T>
-
- All Implemented Interfaces:
IPaginator<T>
,java.io.Serializable
public class Paginator<T> extends java.lang.Object implements IPaginator<T>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Paginator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getFirst()
java.util.Collection<T>
getList()
<V extends IIdentity>
java.util.Collection<V>getList(java.lang.Class<V> classReturn)
int
getMaxResults()
long
getTotal()
void
setFirst(long first)
void
setList(java.util.Collection<T> list)
void
setMaxResults(int maxResults)
void
setTotal(long total)
-
-
-
Method Detail
-
getFirst
public long getFirst()
- Specified by:
getFirst
in interfaceIPaginator<T>
-
setFirst
public void setFirst(long first)
- Specified by:
setFirst
in interfaceIPaginator<T>
-
getMaxResults
public int getMaxResults()
- Specified by:
getMaxResults
in interfaceIPaginator<T>
-
setMaxResults
public void setMaxResults(int maxResults)
- Specified by:
setMaxResults
in interfaceIPaginator<T>
-
getTotal
public long getTotal()
- Specified by:
getTotal
in interfaceIPaginator<T>
-
setTotal
public void setTotal(long total)
- Specified by:
setTotal
in interfaceIPaginator<T>
-
getList
public java.util.Collection<T> getList()
- Specified by:
getList
in interfaceIPaginator<T>
-
getList
public <V extends IIdentity> java.util.Collection<V> getList(java.lang.Class<V> classReturn)
- Specified by:
getList
in interfaceIPaginator<T>
-
setList
public void setList(java.util.Collection<T> list)
- Specified by:
setList
in interfaceIPaginator<T>
-
-