com.mysema.query
Class QueryModifiers
java.lang.Object
com.mysema.query.QueryModifiers
- All Implemented Interfaces:
- java.io.Serializable
@Immutable
public final class QueryModifiers
- extends java.lang.Object
- implements java.io.Serializable
QueryModifiers combines limit and offset info into a single type.
- Author:
- tiwe
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
QueryModifiers
public QueryModifiers()
QueryModifiers
public QueryModifiers(@Nullable
java.lang.Long limit,
@Nullable
java.lang.Long offset)
QueryModifiers
public QueryModifiers(QueryModifiers modifiers)
limit
public static QueryModifiers limit(@Nonnegative
long limit)
offset
public static QueryModifiers offset(@Nonnegative
long offset)
getLimit
@Nullable
public java.lang.Long getLimit()
getOffset
@Nullable
public java.lang.Long getOffset()
isRestricting
public boolean isRestricting()
- Checks if is restricting.
- Returns:
- true, if is restricting
subList
public <T> java.util.List<T> subList(java.util.List<T> list)
- Get a sublist based on the restriction of limit and offset
- Type Parameters:
T
- - Parameters:
list
-
- Returns:
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.