src/main/java/com/stijndepestel/geminio/Capture.java
/**
     * Capture event.
     *
     * @param event
     *            The event to capture.
     * @throws IllegalStateException
     *             When trying to capture an event when the object is not in
     *             capture mode.
     */
Capture event.
@param event
The event to capture.
@throws IllegalStateException
When trying to capture an event when the object is not in
capture mode.
Capture event . @param event The event to capture . @throws IllegalStateException When trying to capture an event when the object is not in capture mode .
public void capture(final T event) {
        if (this.currentState != State.CAPTURING) {
            throw new IllegalStateException(Capture.ERROR_MESSAGE);
        }
        final long relTimestamp = System.currentTimeMillis()
                - this.captureStart;
        this.serializedEvents.add(new Wrapper<T>(event, relTimestamp));
    }
public void capture ( final T event ) { if ( this . currentState != State . CAPTURING ) { throw new IllegalStateException ( Capture . ERROR_MESSAGE ) ; } final long relTimestamp = System . currentTimeMillis ( ) - this . captureStart ; this . serializedEvents . add ( new Wrapper < T > ( event , relTimestamp ) ) ; }
Capture event.
Capture event .