public final class ListQueryResult<T> extends java.lang.Object implements QueryResult<T>
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
T |
getAt(int index) |
java.lang.Class<T> |
getContainsType() |
T |
getFirst() |
boolean |
getHasNext() |
boolean |
getHasPrevious() |
T |
getLast() |
int |
getLimit() |
int |
getOffset() |
java.util.List<T> |
getResults() |
int |
getSize() |
int |
getTotalFound() |
int |
hashCode() |
boolean |
isContainsType(java.lang.Class<?> type) |
boolean |
isEmpty() |
boolean |
isNotEmpty() |
boolean |
isTotalExact() |
java.util.Iterator<T> |
iterator() |
static <T> ListQueryResult<T> |
newComplete(java.lang.Class<T> type,
java.util.Collection<T> results) |
static <T> ListQueryResult<T> |
newComplete(java.lang.Class<T> type,
T... results) |
static <T> ListQueryResult<T> |
newEmpty(java.lang.Class<T> type) |
static <T> ListQueryResult<T> |
newResult(java.lang.Class<T> type,
int limit,
int offset,
int totalFound,
boolean totalExact,
java.util.Collection<T> results) |
static <T> ListQueryResult<T> |
newResult(java.lang.Class<T> type,
int limit,
int offset,
int totalFound,
boolean totalExact,
T... results) |
static <T> ListQueryResult<T> |
newSingle(java.lang.Class<T> type,
T value) |
java.lang.String |
toString() |
public static <T> ListQueryResult<T> newEmpty(java.lang.Class<T> type)
public static <T> ListQueryResult<T> newSingle(java.lang.Class<T> type, T value)
public static <T> ListQueryResult<T> newComplete(java.lang.Class<T> type, java.util.Collection<T> results)
public static <T> ListQueryResult<T> newComplete(java.lang.Class<T> type, T... results)
public static <T> ListQueryResult<T> newResult(java.lang.Class<T> type, int limit, int offset, int totalFound, boolean totalExact, java.util.Collection<T> results)
public static <T> ListQueryResult<T> newResult(java.lang.Class<T> type, int limit, int offset, int totalFound, boolean totalExact, T... results)
public java.lang.Class<T> getContainsType()
getContainsType in interface QueryResult<T>public boolean isContainsType(java.lang.Class<?> type)
isContainsType in interface QueryResult<T>public boolean isEmpty()
isEmpty in interface QueryResult<T>public boolean isNotEmpty()
isNotEmpty in interface QueryResult<T>public int getLimit()
getLimit in interface QueryResult<T>public int getSize()
getSize in interface QueryResult<T>public int getTotalFound()
getTotalFound in interface QueryResult<T>public boolean isTotalExact()
isTotalExact in interface QueryResult<T>public int getOffset()
getOffset in interface QueryResult<T>public T getFirst()
getFirst in interface QueryResult<T>public T getLast()
getLast in interface QueryResult<T>public T getAt(int index)
getAt in interface QueryResult<T>public java.util.List<T> getResults()
getResults in interface QueryResult<T>public java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T>iterator in interface QueryResult<T>public boolean getHasPrevious()
getHasPrevious in interface QueryResult<T>public boolean getHasNext()
getHasNext in interface QueryResult<T>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object