From 02141d8df02091e89cb02144417753032337525b Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Mon, 24 Jul 2017 19:46:22 -0700 Subject: [PATCH] Switch underlying implementation to Set from List. --- src/org/nwapw/abacus/lexing/pattern/PatternNode.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/org/nwapw/abacus/lexing/pattern/PatternNode.java b/src/org/nwapw/abacus/lexing/pattern/PatternNode.java index adf7bf5..3ef36d7 100644 --- a/src/org/nwapw/abacus/lexing/pattern/PatternNode.java +++ b/src/org/nwapw/abacus/lexing/pattern/PatternNode.java @@ -1,13 +1,14 @@ package org.nwapw.abacus.lexing.pattern; import java.util.ArrayList; +import java.util.HashSet; public class PatternNode { - protected ArrayList> outputStates; + protected HashSet> outputStates; public PatternNode(){ - outputStates = new ArrayList<>(); + outputStates = new HashSet<>(); } public boolean matches(char other){