Constructor and Description |
---|
Response() |
Modifier and Type | Method and Description |
---|---|
<Z extends T> |
add(Z choice)
Adds a choice to the collection
|
Response<T> |
addAll(Collection<? extends T> choice)
Adds choices to the collection
|
Boolean |
getHasMore() |
List<T> |
getResults() |
Iterator<T> |
iterator() |
Response<T> |
setHasMore(Boolean more)
Sets the
more flag used to tell Select2 whether or not there are more results available. |
Response<T> |
setResults(List<T> results)
Sets the results collection.
|
int |
size() |
public Response<T> setResults(List<T> results)
add(Object)
and
addAll(Collection)
methods.results
- this
for chainingpublic Boolean getHasMore()
mode
flag used to tell Select2 whether or not there are more results available.public Response<T> setHasMore(Boolean more)
more
flag used to tell Select2 whether or not there are more results available.more
- more flagthis
for chainingpublic Response<T> addAll(Collection<? extends T> choice)
choice
- this
for chainingpublic <Z extends T> Response<T> add(Z choice)
choice
- this
for chainingpublic int size()
Copyright © 2015. All rights reserved.