AfterAll extends OnceTrigger { @Override public String toString() { StringBuilder builder = new StringBuilder("AfterAll.of("); Joiner.on(", ").appendTo(builder, subTriggers); builder.append(")"); return builder.toString(); } private  AfterAll(List<Trigger> subTriggers); static AfterAll of(OnceTrigger... triggers); static AfterAll of(List<Trigger> triggers); @Internal @Override Instant getWatermarkThatGuaranteesFiring(BoundedWindow window); @Override String toString();  }
@Test public void testToString() { Trigger trigger = AfterAll.of(StubTrigger.named("t1"), StubTrigger.named("t2")); assertEquals("AfterAll.of(t1, t2)", trigger.toString()); }