|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnct.filter.SortFilter<NodeType,WeightType>
public class SortFilter<NodeType extends java.lang.Comparable<? super NodeType>,WeightType extends java.lang.Comparable<? super WeightType>>
This filter sorts the given solutions from best score (most positive) to worst.
| Constructor Summary | |
|---|---|
SortFilter(boolean reverse)
SortFilter constructor. |
|
| Method Summary | |
|---|---|
java.util.List<Graph<NodeType,WeightType>> |
filter(java.util.List<Graph<NodeType,WeightType>> solutions)
Given a List of Graphs, it sorts the graphs based on the comparable implementation of the graph. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SortFilter(boolean reverse)
reverse - Whether or not to reverse the sort so that the first element is the
greatest and the last element is the least.| Method Detail |
|---|
public java.util.List<Graph<NodeType,WeightType>> filter(java.util.List<Graph<NodeType,WeightType>> solutions)
filter in interface Filter<NodeType extends java.lang.Comparable<? super NodeType>,WeightType extends java.lang.Comparable<? super WeightType>>solutions - the List of Graphs to sort
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||