- Timestamp:
- 07/04/11 15:57:06 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchCore/src/de/ugoe/cs/eventbench/models/TrieNode.java
r86 r102 3 3 import java.io.Serializable; 4 4 import java.security.InvalidParameterException; 5 import java.util.Collection; 5 6 import java.util.LinkedList; 6 7 import java.util.List; … … 22 23 private final T symbol; 23 24 24 private List<TrieNode<T>> children;25 private Collection<TrieNode<T>> children; 25 26 26 27 TrieNode() { … … 96 97 97 98 // returns all symbols that follow this node 98 public List<T> getFollowingSymbols() {99 List<T> followingSymbols = new LinkedList<T>();99 public Collection<T> getFollowingSymbols() { 100 Collection<T> followingSymbols = new LinkedList<T>(); 100 101 for( TrieNode<T> child : children ) { 101 102 followingSymbols.add(child.getSymbol());
Note: See TracChangeset
for help on using the changeset viewer.