|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.glitter.query.PatternSolutionImpl.SetSolutionComparator
public static class PatternSolutionImpl.SetSolutionComparator
Used to provide a stable sort to two PatternSolutions.
This orders a solution with a common term (from the other
solution set) first if the other solution doesn't contain
that bindable... It ensures that solutions with common
terms are earlier in the sort order.
| Constructor Summary | |
|---|---|
PatternSolutionImpl.SetSolutionComparator(java.util.Set<Bindable> matches)
|
|
| Method Summary | |
|---|---|
int |
compare(PatternSolution o1,
PatternSolution o2)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public PatternSolutionImpl.SetSolutionComparator(java.util.Set<Bindable> matches)
matches - The set of variables and blank nodes that are in common between
the solutions being sorted.| Method Detail |
|---|
public int compare(PatternSolution o1,
PatternSolution o2)
compare in interface java.util.Comparator<PatternSolution>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||