public Iterator<Element> iterator() { return new ArrayIterator<Element>(elements); }
protected Sequence(Element[] elements) { this(elements, null, null); }
- protected Sequence(Element[] elements, HashSet<Sequence> and, HashSet<Sequence> not) {
+ private Sequence(Element[] elements, HashSet<Sequence> and, HashSet<Sequence> not) {
if (and!=null) for(Sequence s : and) { needs.add(s); s.needed.add(this); }
if (not!=null) for(Sequence s : not) { hates.add(s); s.hated.add(this); }
this.elements = elements;