T - public class ResultList<T> extends Result<T>
errorsList| Constructor and Description |
|---|
ResultList(List<T> resultsList,
List<org.springframework.validation.ObjectError> errorsList)
Parameterized constructor initializer based on list of content objects and errors.
|
ResultList(List<T> resultsList,
List<org.springframework.validation.ObjectError> errorsList,
long totalRecords,
int listNumber,
int listSize,
boolean first,
boolean last)
Parameterized constructor initializer based on list of content objects, errors,
and related information.
|
ResultList(List<T> resultsList,
long totalRecords,
int listNumber,
int listSize,
boolean first,
boolean last)
Parameterized constructor initializer based on list of content objects, errors,
and related information.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getContents()
Gets content objects in compliance with WindnTrees response object.
|
int |
getListNumber() |
int |
getListSize()
Gets current list (or page) number;
|
long |
getTotalRecords()
Gets total number of records or objects.
|
boolean |
isFirst()
Boolean status value to check if list of response objects is first one?
|
boolean |
isLast()
Boolean status value to check if list of response objects is last one?
|
void |
setFirst(boolean first)
Sets first list status value.
|
void |
setLast(boolean last)
Sets last list status value.
|
void |
setListNumber(int listNumber)
Sets current list (or page) number.
|
void |
setListSize(int listSize)
Sets list size (or page size).
|
void |
setResultsList(List<T> resultsList)
Sets list of content objects.
|
void |
setTotalRecords(int totalRecords)
Sets total number of records or objects.
|
public ResultList(List<T> resultsList, List<org.springframework.validation.ObjectError> errorsList)
resultsList - errorsList - public ResultList(List<T> resultsList, long totalRecords, int listNumber, int listSize, boolean first, boolean last)
resultsList - totalRecords - listNumber - listSize - first - last - public ResultList(List<T> resultsList, List<org.springframework.validation.ObjectError> errorsList, long totalRecords, int listNumber, int listSize, boolean first, boolean last)
resultsList - errorsList - totalRecords - listNumber - listSize - first - last - public void setResultsList(List<T> resultsList)
resultsList - public long getTotalRecords()
public void setTotalRecords(int totalRecords)
totalRecords - public int getListNumber()
public void setListNumber(int listNumber)
listNumber - public int getListSize()
public void setListSize(int listSize)
listSize - public boolean isFirst()
public void setFirst(boolean first)
first - public boolean isLast()
public void setLast(boolean last)
last - public Object getContents()
ResultgetContents in class Result<T>Copyright © 2018. All rights reserved.