Archived
0

use custom function for checking targets

This commit is contained in:
iMoHax
2015-07-01 15:56:54 +03:00
parent 3f2ed90df8
commit 17f4f1f60c
3 changed files with 90 additions and 39 deletions

View File

@@ -12,8 +12,9 @@ import java.util.stream.Collectors;
public class SimpleCollector<T> {
private List<List<Edge<T>>> paths = new ArrayList<>();
public void add(List<Edge<T>> path){
public boolean add(List<Edge<T>> path){
paths.add(path);
return true;
}
public List<List<Edge<T>>> get() {