src/main/java/com/stijndepestel/geminio/Capture.java
/**
     * Convert the events stored in the map to a single JSONObject for
     * persisting.
     *
     * @return The JSONObject containing all events and their relative
     *         timestamps.
     */
Convert the events stored in the map to a single JSONObject for
persisting.

@return The JSONObject containing all events and their relative
timestamps.
Convert the events stored in the map to a single JSONObject for persisting . @return The JSONObject containing all events and their relative timestamps .
private JSONObject eventsToJSON() {
        final JSONObject json = new JSONObject();
        this.serializedEvents.forEach(wrap -> json.append(JSONNames.JSON_EVENTS,
                wrap.toJSON(this.serializer)));
        return json;
    }
private JSONObject eventsToJSON ( ) { final JSONObject json = new JSONObject ( ) ; this . serializedEvents . forEach ( wrap -> json . append ( JSONNames . JSON_EVENTS , wrap . toJSON ( this . serializer ) ) ) ; return json ; }
Convert the events stored in the map to a single JSONObject for
 persisting.
Convert the events stored in the map to a single JSONObject for persisting .