- Timestamp:
- 01/27/12 14:42:36 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchCore/src/de/ugoe/cs/eventbench/models/TrieNode.java
r258 r361 78 78 * symbol associated with the trie node 79 79 */ 80 publicTrieNode(T symbol) {80 TrieNode(T symbol) { 81 81 if (symbol == null) { 82 82 throw new InvalidParameterException( … … 86 86 count = 0; 87 87 children = new LinkedList<TrieNode<T>>(); 88 } 89 90 /** 91 * <p> 92 * Copy-Constructor. Creates a new TrieNode as copy of other. Other must not 93 * be null. 94 * </p> 95 * 96 * @param other 97 */ 98 TrieNode(TrieNode<T> other) { 99 if (other == null) { 100 throw new InvalidParameterException("other must not be null"); 101 } 102 symbol = other.symbol; 103 count = other.count; 104 children = new LinkedList<TrieNode<T>>(); 105 for (TrieNode<T> child : other.children) { 106 children.add(new TrieNode<T>(child)); 107 } 88 108 } 89 109
Note: See TracChangeset
for help on using the changeset viewer.