public ServerSentEvent build() {
        if (id == null && event == null &&
            retry == null && comment == null && data == null) {
            return DefaultServerSentEvent.EMPTY;
        }
        return new DefaultServerSentEvent(id, event, retry, comment, data);
    }
public ServerSentEvent build ( ) { if ( id == null && event == null && retry == null && comment == null && data == null ) { return DefaultServerSentEvent . EMPTY ; } return new DefaultServerSentEvent ( id , event , retry , comment , data ) ; }
Creates a new {@link ServerSentEvent} instance.