package com.atlassian.bitbucket.mesh.git.content;

import javax.annotation.Nonnull;

/**
 * Describes a callback for receiving streaming {@link Change changes}.
 */
@FunctionalInterface
public interface ChangeCallback {

    /**
     * Provides a {@link Change change} to the callback for processing.
     *
     * @param change the change to process
     */
    void onChange(@Nonnull Change change);
}
