public final class DiagnosticCollector<S>
  Comment     Returned-by     Constructor-argument     Method-argument     Field-type     Type-bound     Links  

Provides an easy way to collect diagnostics in a list.

implements DiagnosticListener<S>

Parameters:
<S>    the type of source objects used by diagnostics received by this object

Since:  1.6