Skip to content
Snippets Groups Projects
Commit 78dc3d9a authored by Christopher Schankula's avatar Christopher Schankula :earth_africa:
Browse files

change return type of getChildren() to Iterator<TaxonNode>

parent f4e308e0
No related branches found
No related tags found
No related merge requests found
package biotree;
import java.util.ArrayList;
import java.util.List;
// https://stackoverflow.com/questions/2697182/how-to-use-an-array-list
......@@ -11,7 +10,7 @@ public class TaxonNode {
private final String name;
private TaxonNode parent; // this can't be final unless parent is recursively returned and constructed in constructor.
private List<TaxonNode> children = new ArrayList<TaxonNode>();
private ArrayList<TaxonNode> children = new ArrayList<TaxonNode>();
private int count;
public TaxonNode(int taxonId, TaxonType taxonType, String name) {
......@@ -48,7 +47,7 @@ public class TaxonNode {
}
//Stub Changed
public List<TaxonNode> getChildren() {
public Iterable<TaxonNode> getChildren() {
return this.children;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment