diff --git a/prism/src/explicit/IndexedSet.java b/prism/src/explicit/IndexedSet.java index b2a0f0e3..a72336b3 100644 --- a/prism/src/explicit/IndexedSet.java +++ b/prism/src/explicit/IndexedSet.java @@ -39,13 +39,19 @@ public class IndexedSet implements StateStorage public IndexedSet() { - this(false); + indexOfLastAdd = -1; } public IndexedSet(boolean sorted) { + this(); set = sorted ? new TreeMap() : new HashMap(); - indexOfLastAdd = -1; + } + + public IndexedSet(Comparator comparator) + { + this(); + set = new TreeMap(comparator); } @Override