public final class QueryModifiers
extends java.lang.Object
implements java.io.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(@Nullable java.lang.Long limit,
@Nullable java.lang.Long offset) |
QueryModifiers(QueryModifiers modifiers) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
@Nullable java.lang.Long |
getLimit() |
@Nullable java.lang.Integer |
getLimitAsInteger() |
@Nullable java.lang.Long |
getOffset() |
@Nullable java.lang.Integer |
getOffsetAsInteger() |
int |
hashCode() |
boolean |
isRestricting()
Checks if is restricting.
|
static QueryModifiers |
limit(@Range(from=0L,to=2147483647L) long limit) |
static QueryModifiers |
offset(@Range(from=0L,to=2147483647L) long offset) |
<T> java.util.List<T> |
subList(java.util.List<T> list)
Get a sublist based on the restriction of limit and offset
|
public static final QueryModifiers EMPTY
public QueryModifiers(@Nullable @Nullable java.lang.Long limit, @Nullable @Nullable java.lang.Long offset)
public QueryModifiers(QueryModifiers modifiers)
public static QueryModifiers limit(@Range(from=0L,to=2147483647L) long limit)
public static QueryModifiers offset(@Range(from=0L,to=2147483647L) long offset)
@Nullable public @Nullable java.lang.Long getLimit()
@Nullable public @Nullable java.lang.Integer getLimitAsInteger()
@Nullable public @Nullable java.lang.Long getOffset()
@Nullable public @Nullable java.lang.Integer getOffsetAsInteger()
public boolean isRestricting()
public <T> java.util.List<T> subList(java.util.List<T> list)
T
- list
- list to be handledpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2007–2021 Querydsl. All rights reserved.