public class SortOrder<E> extends Object implements ISortOrder<E>
Constructor and Description |
---|
SortOrder(IValueExpression<E> expr,
boolean asc) |
Modifier and Type | Method and Description |
---|---|
IValueExpression<E> |
getExpr()
An
IValueExpression to be evaluated for each input solution. |
boolean |
isAscending()
true iff the values will be placed into an ascending sort
and false if the values will be placed into a descending
sort. |
String |
toString()
Either
ASC ( expr ) or DESC ( expr ) . |
public SortOrder(IValueExpression<E> expr, boolean asc)
expr
- The value expression.asc
- true
for an ascending sort and
false
for a descending sort.public String toString()
ASC ( expr ) or DESC ( expr )
.public IValueExpression<E> getExpr()
ISortOrder
IValueExpression
to be evaluated for each input solution. The
IValueExpression
should be either a bare IVariable
, a
IConstant
or an IBind
associating the computed value of
an IValueExpression
with an IVariable
bound on the
solution as a side-effect.getExpr
in interface ISortOrder<E>
public boolean isAscending()
ISortOrder
true
iff the values will be placed into an ascending sort
and false
if the values will be placed into a descending
sort.isAscending
in interface ISortOrder<E>
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.