|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mysema.query.QueryModifiers
@Immutable public final class QueryModifiers
QueryModifiers combines limit and offset info into a single type.
| Constructor Summary | |
|---|---|
QueryModifiers()
Instantiates a new query modifiers. |
|
QueryModifiers(Long limit,
Long offset)
Instantiates a new query modifiers. |
|
QueryModifiers(QueryModifiers modifiers)
|
|
| Method Summary | ||
|---|---|---|
boolean |
equals(Object o)
|
|
Long |
getLimit()
Gets the limit. |
|
Long |
getOffset()
Gets the offset. |
|
int |
hashCode()
|
|
boolean |
isRestricting()
Checks if is restricting. |
|
static QueryModifiers |
limit(long limit)
|
|
static QueryModifiers |
offset(long offset)
|
|
|
subList(List<T> list)
Get a sublist based on the restriction of limit and offset |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryModifiers()
public QueryModifiers(@Nullable
Long limit,
@Nullable
Long offset)
limit - the limitoffset - the offsetpublic QueryModifiers(QueryModifiers modifiers)
modifiers - | Method Detail |
|---|
public static QueryModifiers limit(@Nonnegative
long limit)
public static QueryModifiers offset(@Nonnegative
long offset)
@Nullable public Long getLimit()
@Nullable public Long getOffset()
public boolean isRestricting()
public <T> List<T> subList(List<T> list)
T - list -
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||