public final class QueryModifiers extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static QueryModifiers |
EMPTY |
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
- Copyright © 2007–2015 Mysema Ltd. All rights reserved.