Skip to content

Commit 5b0fd79

Browse files
committed
CompactMMLT: allow for sizeHints
1 parent 6c3cf5d commit 5b0fd79

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/src/main/java/net/automatalib/automaton/mmlt/impl/CompactMMLT.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ public class CompactMMLT<I, O> extends CompactMealy<I, O> implements MutableMMLT
5151
* The combiner function for simultaneous timeouts of periodic timers.
5252
*/
5353
public CompactMMLT(Alphabet<I> nonDelayingInputs, O silentOutput, SymbolCombiner<O> outputCombiner) {
54-
super(nonDelayingInputs);
54+
this(nonDelayingInputs, DEFAULT_INIT_CAPACITY, silentOutput, outputCombiner);
55+
}
56+
57+
public CompactMMLT(Alphabet<I> nonDelayingInputs, int sizeHint, O silentOutput, SymbolCombiner<O> outputCombiner) {
58+
super(nonDelayingInputs, sizeHint);
5559

5660
this.sortedTimers = new HashMap<>();
5761
this.resets = new HashMap<>();

0 commit comments

Comments
 (0)