Changeset 399 for trunk/EventBenchCore/src/de/ugoe
- Timestamp:
- 03/09/12 13:40:55 (13 years ago)
- Location:
- trunk/EventBenchCore/src/de/ugoe/cs/eventbench/models
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchCore/src/de/ugoe/cs/eventbench/models/Trie.java
r397 r399 8 8 import java.util.LinkedList; 9 9 import java.util.List; 10 import java.util.Set;11 10 12 11 import de.ugoe.cs.util.StringTools; … … 408 407 */ 409 408 public int getNumLeafAncestors() { 410 Set<TrieNode<T>> ancestors = new HashSet<TrieNode<T>>();409 List<TrieNode<T>> ancestors = new LinkedList<TrieNode<T>>(); 411 410 rootNode.getLeafAncestors(ancestors); 412 411 return ancestors.size(); -
trunk/EventBenchCore/src/de/ugoe/cs/eventbench/models/TrieNode.java
r397 r399 6 6 import java.util.LinkedList; 7 7 import java.util.List; 8 import java.util.Set;9 8 10 9 import de.ugoe.cs.eventbench.models.Trie.Edge; … … 350 349 * set of all ancestors of leafs 351 350 */ 352 protected void getLeafAncestors( Set<TrieNode<T>> ancestors) {351 protected void getLeafAncestors(List<TrieNode<T>> ancestors) { 353 352 boolean isAncestor = false; 354 353 for (TrieNode<T> child : children) {
Note: See TracChangeset
for help on using the changeset viewer.