com.mysema.query
Class QueryModifiers
java.lang.Object
  
com.mysema.query.QueryModifiers
- All Implemented Interfaces: 
 - Serializable
 
@Immutable
public final class QueryModifiers
- extends Object
- implements Serializable
  
QueryModifiers combines limit and offset info into a single type.
- Author:
 
  - tiwe
 
- See Also:
 - Serialized Form
 
 
 
 
QueryModifiers
public QueryModifiers()
QueryModifiers
public QueryModifiers(@Nullable
                      Long limit,
                      @Nullable
                      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 Long getLimit()
 
 
getOffset
@Nullable
public Long getOffset()
 
 
isRestricting
public boolean isRestricting()
- Checks if is restricting.
 
- Returns:
 - true, if is restricting
 
 
 
subList
public <T> List<T> subList(List<T> list)
- Get a sublist based on the restriction of limit and offset
 
- Type Parameters:
 T - - Parameters:
 list - 
- Returns:
 
 
 
equals
public boolean equals(Object o)
- Overrides:
 equals in class Object
 
 
hashCode
public int hashCode()
- Overrides:
 hashCode in class Object
 
 
Copyright © 2007-2011 Mysema Ltd. All Rights Reserved.