public final class QueryModifiers
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static QueryModifiers |
EMPTY |
Constructor and Description |
---|
QueryModifiers(java.lang.Long limit,
java.lang.Long offset) |
QueryModifiers(QueryModifiers modifiers) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.Long |
getLimit() |
java.lang.Integer |
getLimitAsInteger() |
java.lang.Long |
getOffset() |
java.lang.Integer |
getOffsetAsInteger() |
int |
hashCode() |
boolean |
isRestricting()
Checks if is restricting.
|
static QueryModifiers |
limit(long limit) |
static QueryModifiers |
offset(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 java.lang.Long limit, @Nullable java.lang.Long offset)
public QueryModifiers(QueryModifiers modifiers)
public static QueryModifiers limit(@Nonnegative long limit)
public static QueryModifiers offset(@Nonnegative long offset)
@Nullable public java.lang.Long getLimit()
@Nullable public java.lang.Integer getLimitAsInteger()
@Nullable public java.lang.Long getOffset()
@Nullable public java.lang.Integer getOffsetAsInteger()
public boolean isRestricting()
public <T> java.util.List<T> subList(java.util.List<T> list)
T
- list
- public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.