public Expect(Object topE, Object subE) { expected = topE; subs = new Vector(); subs.addElement((subE instanceof Expect) ? subE : (new Expect(subE))); }
public Expect(Object topE, Expect[] subE) { expected = topE; subs = new Vector(); for (int i = 0; i < subE.length; i++) subs.addElement(subE[i]); }