public class Result<L>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.HashMap<java.lang.String,java.lang.Object> |
attributes |
protected java.util.List<L> |
list |
protected Page |
page |
Constructor and Description |
---|
Result() |
Result(java.util.List<L> list) |
Result(java.util.List<L> list,
Page page) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAttribute(java.lang.String key) |
<K> K |
getAttribute(java.lang.String key,
java.lang.Class<K> clazz) |
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes() |
java.util.List<L> |
getList() |
Page |
getPage() |
void |
setAttribute(java.lang.String key,
java.lang.Object value) |
void |
setList(java.util.List<L> list) |
void |
setPage(Page page) |
protected java.util.List<L> list
protected Page page
protected java.util.HashMap<java.lang.String,java.lang.Object> attributes
public Result()
public Result(java.util.List<L> list)
public java.util.List<L> getList()
public void setList(java.util.List<L> list)
public java.lang.Object getAttribute(java.lang.String key)
public <K> K getAttribute(java.lang.String key, java.lang.Class<K> clazz)
public void setAttribute(java.lang.String key, java.lang.Object value)
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
public Page getPage()
public void setPage(Page page)