public FSTCompletion(FST<Object> automaton, boolean higherWeightsFirst, boolean exactFirst) {this.automaton = automaton;if (automaton != null) {this.rootArcs = cacheRootArcs(automaton);} else {this.rootArcs = new Arc[0];}this.higherWeightsFirst = higherWeightsFirst;this.exactFirst = exactFirst;}
public FSTCompletion(FST<object> automaton, bool higherWeightsFirst, bool exactFirst){this.automaton = automaton;if (automaton != null){this.rootArcs = CacheRootArcs(automaton);}else{this.rootArcs = new FST.Arc<object>[0];}this.higherWeightsFirst = higherWeightsFirst;this.exactFirst = exactFirst;}