public class BindingSetComparator<E> extends Object implements Comparator<IBindingSet>
Constructor and Description |
---|
BindingSetComparator(ISortOrder<E>[] sortOrder,
Comparator<E> valueComparator) |
Modifier and Type | Method and Description |
---|---|
int |
compare(IBindingSet bs1,
IBindingSet bs2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public BindingSetComparator(ISortOrder<E>[] sortOrder, Comparator<E> valueComparator)
sortOrder
- The sort order to be imposed. While the ISortOrder
is
defined in terms of IValueExpression
s, any
IValueExpression
s MUST be either bare variables or
constants or be IBind
s where the nested
IValueExpression
has been computed and bound on the
solutions to be compared by the caller.valueComparator
- The comparator used on the values extracted from the
IBindingSet
s.public int compare(IBindingSet bs1, IBindingSet bs2)
compare
in interface Comparator<IBindingSet>
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.