@Test public void getEventsImmutable() { DocumentBuilderEvents events = new DocumentBuilderEvents(Lists.<DocumentBuilderEvent> newArrayList()); assertThrows(UnsupportedOperationException.class, () -> events.getEvents().clear()); }
public List<DocumentBuilderEvent> getEvents() { return events; }
DocumentBuilderEvents { public List<DocumentBuilderEvent> getEvents() { return events; } }
DocumentBuilderEvents { public List<DocumentBuilderEvent> getEvents() { return events; } DocumentBuilderEvents(List<DocumentBuilderEvent> events); }
DocumentBuilderEvents { public List<DocumentBuilderEvent> getEvents() { return events; } DocumentBuilderEvents(List<DocumentBuilderEvent> events); List<DocumentBuilderEvent> getEvents(); void applyTo(DocumentBuilder builder); @Override String toString(); }
DocumentBuilderEvents { public List<DocumentBuilderEvent> getEvents() { return events; } DocumentBuilderEvents(List<DocumentBuilderEvent> events); List<DocumentBuilderEvent> getEvents(); void applyTo(DocumentBuilder builder); @Override String toString();  }