Package com.querydsl.core
Class QueryModifiers
java.lang.Object
com.querydsl.core.QueryModifiers
- All Implemented Interfaces:
Serializable
QueryModifiers combines limit and offset info into a single immutable value type.- Author:
- tiwe
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionQueryModifiers(@Nullable Long limit, @Nullable Long offset) QueryModifiers(QueryModifiers modifiers) -
Method Summary
Modifier and TypeMethodDescriptionboolean@Nullable LonggetLimit()@Nullable Integer@Nullable Long@Nullable IntegerinthashCode()booleanChecks if is restricting.static QueryModifierslimit(@org.jetbrains.annotations.Range(from=0L, to=2147483647L) long limit) static QueryModifiersoffset(@org.jetbrains.annotations.Range(from=0L, to=2147483647L) long offset) <T> List<T>Get a sublist based on the restriction of limit and offset
-
Field Details
-
EMPTY
No limit and not offset restriction
-
-
Constructor Details
-
QueryModifiers
-
QueryModifiers
-
-
Method Details
-
limit
public static QueryModifiers limit(@org.jetbrains.annotations.Range(from=0L, to=2147483647L) long limit) -
offset
public static QueryModifiers offset(@org.jetbrains.annotations.Range(from=0L, to=2147483647L) long offset) -
getLimit
-
getLimitAsInteger
-
getOffset
-
getOffsetAsInteger
-
isRestricting
public boolean isRestricting()Checks if is restricting.- Returns:
- true, if is restricting
-
subList
Get a sublist based on the restriction of limit and offset- Type Parameters:
T-- Parameters:
list- list to be handled- Returns:
- sublist with limit and offset applied
-
equals
-
hashCode
public int hashCode()
-