Package io.inversion.query
Class Order<T extends Order,P extends Query>
- java.lang.Object
-
- io.inversion.query.Builder<T,P>
-
- io.inversion.query.Order<T,P>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOrder.Sort
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetProperty(int index)java.util.List<Order.Sort>getSorts()booleanisAsc(int index)OrderwithSorts(java.util.List<Order.Sort> sorts)-
Methods inherited from class io.inversion.query.Builder
addTerm, clearFunctions, find, find, findAll, findAll, findInt, findTerm, getBuilders, getParent, getRoot, getTerms, isFunction, parse, r, removeBuilder, toString, toString, withBuilder, withFunctions, withFunctions, withParent, withTerm, withTerm, withTerm, withTerms
-
-
-
-
Constructor Detail
-
Order
public Order(P query)
-
-
Method Detail
-
isAsc
public boolean isAsc(int index)
- Parameters:
index- the sort term to check- Returns:
- true if the indexed sort is ascending or if the index is out of bounds
-
getProperty
public java.lang.String getProperty(int index)
-
getSorts
public java.util.List<Order.Sort> getSorts()
-
withSorts
public Order withSorts(java.util.List<Order.Sort> sorts)
-
-