Data
- the type of data for this list load resultpublic class PagingLoadResultBean<Data> extends ListLoadResultBean<Data> implements PagingLoadResult<Data>
ListLoadResultBean
that adds support for paging properties as
described by PagingLoadResult
.list
Constructor and Description |
---|
PagingLoadResultBean()
Creates an empty paging load result bean.
|
PagingLoadResultBean(List<Data> list,
int totalLength,
int offset)
Creates a new paging list load result.
|
Modifier and Type | Method and Description |
---|---|
int |
getOffset()
Returns the current offset of the results.
|
int |
getTotalLength()
Returns the total count.
|
void |
setOffset(int offset)
Sets the offset.
|
void |
setTotalLength(int totalLength)
Sets the total length.
|
getData, setData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getData
public PagingLoadResultBean()
public int getOffset()
PagingLoadResult
getOffset
in interface PagingLoadResult<Data>
public int getTotalLength()
PagingLoadResult
getTotalLength
in interface PagingLoadResult<Data>
public void setOffset(int offset)
PagingLoadResult
setOffset
in interface PagingLoadResult<Data>
offset
- the offsetpublic void setTotalLength(int totalLength)
PagingLoadResult
setTotalLength
in interface PagingLoadResult<Data>
totalLength
- the total lengthCopyright © 2018. All rights reserved.