src/main/java/com/stijndepestel/geminio/Wrapper.java
/**
     * Create JSON object of this wrapped event. The JSON consists of the
     * relative timestamp and the event which will be serialized by the provided
     * serializer in the parent Capture object.
     *
     * @param serializer
     *            The serializer for the event that is being wrapped.
     * @return The JSON object containing the relative time and the event.
     */
Create JSON object of this wrapped event. The JSON consists of the
relative timestamp and the event which will be serialized by the provided
serializer in the parent Capture object.

@param serializer
The serializer for the event that is being wrapped.
@return The JSON object containing the relative time and the event.
Create JSON object of this wrapped event . The JSON consists of the relative timestamp and the event which will be serialized by the provided serializer in the parent Capture object . @param serializer The serializer for the event that is being wrapped . @return The JSON object containing the relative time and the event .
public JSONObject toJSON(final Function<T, JSONObject> serializer) {
        final JSONObject json = new JSONObject();
        json.put(JSONNames.JSON_REL_TIME, this.relativeTimestamp);
        json.put(JSONNames.JSON_EVENT, serializer.apply(this.event));
        return json;
    }
public JSONObject toJSON ( final Function < T , JSONObject > serializer ) { final JSONObject json = new JSONObject ( ) ; json . put ( JSONNames . JSON_REL_TIME , this . relativeTimestamp ) ; json . put ( JSONNames . JSON_EVENT , serializer . apply ( this . event ) ) ; return json ; }
Create JSON object of this wrapped event.
Create JSON object of this wrapped event .