package st.gaw.db;

public interface InMemoryDbListener<E> {
	void onMemoryDbChanged(InMemoryDbHelper<E> db);
}

package st.gaw.db;

/**
 * listener interface to be notified when the data changes in a {@link InMemoryDbHelper}
 *
 * @param <E> the type of data stored by the database
 */
public interface InMemoryDbListener<E> {
	/**
	 * notify the listener that the data of the {@link InMemoryDbHelper} just changed
	 * <p>it may be called from any thread, including the internal one
	 * @param db the database which content has changed
	 */
	void onMemoryDbChanged(InMemoryDbHelper<E> db);
}

add some comments