public final class QueryModifiers extends Object implements Serializable
QueryModifiers
combines limit and offset info into a single immutable value type.Modifier and Type | Field and Description |
---|---|
static QueryModifiers |
EMPTY
No limit and not offset restriction
|
Constructor and Description |
---|
QueryModifiers(Long limit,
Long offset) |
QueryModifiers(QueryModifiers modifiers) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Long |
getLimit() |
Integer |
getLimitAsInteger() |
Long |
getOffset() |
Integer |
getOffsetAsInteger() |
int |
hashCode() |
boolean |
isRestricting()
Checks if is restricting.
|
static QueryModifiers |
limit(long limit) |
static QueryModifiers |
offset(long offset) |
<T> List<T> |
subList(List<T> list)
Get a sublist based on the restriction of limit and offset
|
public static final QueryModifiers EMPTY
public QueryModifiers(QueryModifiers modifiers)
public static QueryModifiers limit(@Nonnegative long limit)
public static QueryModifiers offset(@Nonnegative long offset)
public boolean isRestricting()
public <T> List<T> subList(List<T> list)
T
- list
- list to be handledCopyright © 2007–2016 Querydsl. All rights reserved.